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
Release files for zapp 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zapp-0.0.7.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zapp-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / zapp-0.0.7.tar.gz
| Download URL | zapp-0.0.7.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f37470dc33888d3a7d5a499465d9b9acf28c7c9908ea0b877ed250953d41f0e3
|
|
BLAKE2b-256 checksum How to use checksums |
7a5ccadb508f8c94026d2d440245c53306a8b81dd2ee3ecc810691cc3c41c8b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / zapp-0.0.7-py3-none-any.whl
| Download URL | zapp-0.0.7-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2497875bb8cd2a773ea9aab4f28fb6004cdc73c2d19fbdb1675ed4ebc7f4b8c
|
|
BLAKE2b-256 checksum How to use checksums |
9cb95f235fd20143892b03c5a292b2f2d9b25149e345460401dde340123fed6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|