Skip to content

Suzhou-Tongyuan/pypkgpack

Repository files navigation

PyPkgPack

CI versions pypi License

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

About

Bundling your Python project into a single Python file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages