Build zipapp single file Python applications easily
Project description
Introduction
Build zipapp (PEP 441) single file Python applications easily.
Repositories
Distributions:
Source code:
Usage
Standalone application
$ zapp --help
usage: zapp [-h] [--version] [--requirements requirements.txt]
output_file entry_point [requirement [requirement ...]]
positional arguments:
output_file
entry_point
requirement
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
Library
import zapp
zapp.core.build_zapp(
'myapp.pyz', # output_file
'myapp.cli:main', # entry_point
requirements=[
'myapp==1.2.3',
'mylib==3.2.1',
],
requirements_txts=[
'A.txt',
'B.txt',
],
)
Setuptools command
python3 setup.py bdist_zapp --entry-point myapp.cli:main
Details
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.
Source Distribution
zapp-0.0.7.tar.gz
(9.0 kB
view details)
Built Distribution
zapp-0.0.7-py3-none-any.whl
(9.2 kB
view details)
File details
Details for the file zapp-0.0.7.tar.gz
.
File metadata
- Download URL: zapp-0.0.7.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f37470dc33888d3a7d5a499465d9b9acf28c7c9908ea0b877ed250953d41f0e3 |
|
MD5 | 5f506ae8fc8307592271d69470f13ef3 |
|
BLAKE2b-256 | 7a5ccadb508f8c94026d2d440245c53306a8b81dd2ee3ecc810691cc3c41c8b0 |
File details
Details for the file zapp-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: zapp-0.0.7-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2497875bb8cd2a773ea9aab4f28fb6004cdc73c2d19fbdb1675ed4ebc7f4b8c |
|
MD5 | ab225b6f6c35f7e308cb2843c24fff94 |
|
BLAKE2b-256 | 9cb95f235fd20143892b03c5a292b2f2d9b25149e345460401dde340123fed6a |