Bundle your packages into a runnable, importable zip.
Because installation is optional.
Zipbundler creates zipapp-compatible .pyz files that are both runnable and importable. Unlike shiv or pex, zipbundler produces standard zipapp files compatible with Python’s built-in zipimport module.
Install Zipbundler:
# Using poetry
poetry add zipbundler
# Using pip
pip install zipbundler
zipapp-style CLI (100% compatible with python -m zipapp):
# All zipapp options supported
zipbundler src/myapp -o app.pyz -p "/usr/bin/env python3" -m "myapp:main" -c
zipbundler app.pyz --info # Display interpreter from archive
Or use configuration:
zipbundler init
zipbundler build
.pyz files compatible with Python’s zipapp modulezipimport or importlibpython -m zipapp command-line interface.zipbundler.jsonc or pyproject.tomlYou’re free to use, copy, and modify the library under the standard MIT terms.
The additional rider simply requests that this project not be used to train or fine-tune AI/ML systems until the author deems fair compensation frameworks exist.
Normal use, packaging, and redistribution for human developers are unaffected.