from py3esourcezip import loader context = loader.load('app.zip') context.execute('startup_hook')
If a PyInstaller app crashes, the error log might reference a file path like: /tmp/_MEI12345/py3esourcezip/mymodule.py This indicates the runtime extracted your source bundle to a temporary directory named py3esourcezip . Scenario B: AWS Lambda and Serverless Deployments AWS Lambda allows uploading a deployment package as a .zip file. To indicate that the bundle is meant for Python 3.9+ and includes source code (not just dependencies), a smart CI/CD pipeline might name the artifact: my_lambda_py3esourcezip.zip py3esourcezip
| Feature | py3esourcezip (custom) | .whl (Wheel) | .pex (PEX file) | .egg (legacy) | | :--- | :--- | :--- | :--- | :--- | | | Yes (by design) | Optionally (often just bytecode) | Yes (compiled) | Maybe | | Self-executable | Only if you add __main__.py + __main__ in archive | No (needs pip install) | Yes (single file run) | No | | Portability | Python 3 only | Python 3 + specific ABI | Python 3 + OS | Python 2/3 | | Standardization | None (custom) | PEP 427 (standard) | Twitter’s PEX standard | Setuptools legacy | | Best for | Embedded systems, plugins | Distribution on PyPI | Deploying apps to servers | Legacy projects | from py3esourcezip import loader context = loader