Skip to main content

Build zipapp single file Python applications easily

Project description


Build zipapp (PEP 441) single file Python applications easily.


Standalone application

$ zapp --help
usage: zapp [-h] [--version] [--requirements requirements.txt]
            output_file entry_point [requirement [requirement ...]]

positional arguments:

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --requirements requirements.txt, -r requirements.txt
zapp ~/bin/myapp myapp.cli:main 'myapp==1.2.3' 'mylib==3.2.1'
zapp ~/bin/myapp myapp.cli:main --requirements A.txt --requirements B.txt

python3 -m zapp ~/bin/myapp myapp.cli:main 'myapp==1.2.3' 'mylib==3.2.1'

zapp toolmaker.pyz toolmaker.cli:main toolmaker
zapp pipdeptree.pyz pipdeptree:main pipdeptree
zapp ~/bin/httpie httpie.__main__:main httpie

# Without requirements (use an entry point from Python's standard library)
zapp zipfile.pyz zipfile:main


import zapp

    'myapp.pyz',  # output_file
    'myapp.cli:main',  # entry_point

Setuptools command

python3 bdist_zapp --entry-point myapp.cli:main


Similar applications

Project details

Download files

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

Files for zapp, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size zapp-0.0.7.tar.gz (9.0 kB) File type Source Python version None Upload date Hashes View
Filename, size zapp-0.0.7-py3-none-any.whl (9.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page