This implementation of pywebview loads a sample webpage that can invoke py client functions to customise the window.
pyinstaller __main__.py --onefile --noconsole
pyinstaller __main__.py --onedir --noconsole
This will be significantly faster to run than a single file as the contents don't need to be unpacked during runtime.