Skip to main content

Build zipapp single file Python applications easily

Project description

Introduction

Build zipapp single file Python applications easily.

Repositories

Binary distributions:

Source code:

Usage

Standalone application

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

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
zapp zipfile.pyz zipfile:main

Library

import zapp

zapp.core.build_zapp(
    [
        'myapp==1.2.3',
        'mylib==3.2.1',
    ],
    'myapp.cli:main',
    'myapp.pyz',
)

Setuptools command

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

Details

Similar applications

Hacking

This project makes extensive use of tox, pytest, and GNU Make.

Development environment

Use following command to create a Python virtual environment with all necessary dependencies:

tox --recreate -e develop

This creates a Python virtual environment in the .tox/develop directory. It can be activated with the following command:

. .tox/develop/bin/activate

Run test suite

In a Python virtual environment run the following command:

make review

Outside of a Python virtual environment run the following command:

tox --recreate

Build and package

In a Python virtual environment run the following command:

make package

Outside of a Python virtual environment run the following command:

tox --recreate -e package

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.4.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

zapp-0.0.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file zapp-0.0.4.tar.gz.

File metadata

  • Download URL: zapp-0.0.4.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

File hashes

Hashes for zapp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 60de6f29f06d4a02a28952bfcf56058fd8641c30fe6305ff78fa1fc7988507f1
MD5 b38979cd1046d626872cc1817fbef92d
BLAKE2b-256 49ddf921f5dcd25b698778e6179c38bbc91011e31318093e3b827b08063c5c43

See more details on using hashes here.

File details

Details for the file zapp-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: zapp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

File hashes

Hashes for zapp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 672a5dc7ff0c79e1c964da76b6f6e67975325874d4ab5576bb9d9c26ac4d013f
MD5 05cd1b7a28c9d72dff371cbe0c91712d
BLAKE2b-256 4c9eaf1c0e57baefd66ddb6613db09fece05d8647c2d52851b84e16b06b77d12

See more details on using hashes here.

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