zipit
Very thin wrapper around zipapp that let's you package a python module and dependencies.
Example
We'll use our demo "app" to showcase zipit.
First, let's take a look at what our app contains:
$ cd demo
$ ls app
__main__.py requirements.txt
Our "app" contains two files:
__main__.py: This is the entrypoint to our app.requirements.txt: This is a classic requirements file as consumed by pip.
Getting things set up
First we need to install the dependencies for our app. zipit doesn't much care how dependencies are installed. We just need to keep track of where they're installed.
Let's use pip:
mkdir deps
$ python3 -m pip install -r app/requirements.txt --target deps
zipit
Once the dependencies are installed, we can let zipit do it's work:
cd ..
$ python3 -m zipit demo/app -d demo/deps
This will produce .pyz file runable with python.
$ python3 app.pyz
Hello, World!
Metadata
Release files for zipit 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zipit-0.0.2.tar.gz | 2.2 kB | Without provenance | Details for zipit-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zipit-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for zipit-0.0.2-py3-none-any.whl |
Total release size: 17.7 kB
Release files / zipit-0.0.2.tar.gz
| Download URL | zipit-0.0.2.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a7a909d5eb4a0bdd65a4b9c3700a2249cd06eab2dd4c622568810cb011fe578
|
|
BLAKE2b-256 checksum How to use checksums |
257063fe3407340d1389e06095b36fa12dce1e27d7d6750b4fd535900afa68ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / zipit-0.0.2-py3-none-any.whl
| Download URL | zipit-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80450c2daf7af804ad7a2fd6b59f72fec5afad63de53a1cdc117bffe0016767b
|
|
BLAKE2b-256 checksum How to use checksums |
c823ee501988966c3d4428935ae50e4e01e11023ce28409d179d0a08dba52555
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for zipit 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.