Skip to main content

Bundling your Python project into a single Python file.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypkgpack-0.4.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

pypkgpack-0.4.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page