Bundling multiple Python packages into a single Python file.
Usage:
> pypkgpack /path/to/mypackage1 /path/to/mypackage2 --out bundled_package.py
> python
python> import bundled_package
python> from mypackage.mymodule import myfunction
python> print(myfunction())
Features:
- bundling a Python package into a single Python file
- caching bytecode compilation and cache invalidation
- fixing the missing
__init__.py
- allow multiple source code implementations for the same module
- respect Python's import semantics
- bundled modules need no extra dependencies
- support bundling binaries and assets
- allow lazy imports