Skip to main content

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)

Source distribution for zapp 0.0.7
File Size Uploaded
zapp-0.0.7.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zapp 0.0.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page