Skip to main content

zip-deploy

PyPI version Upload Python Package Docker

Provides an easy way to fetch contents from a remote ZIP files and sync/extract them to a local destination dir. Note that during download and extraction the contents will not be consistent. Not thread-safe - so take care and check the documentation. If you use the cli, check the -h option for configurable options.

Installation

pip install zip-deploy

Usage

Windows CLI:

# Executes the check every 15 seconds
zip-deploy.exe  --content-destination "./movies" --update-interval 15 "http://your-url.domain/movies.zip"

Unix cli:

# Executes the check every 15 seconds
zip-deploy  --content-destination "./movies" --update-interval 15 "http://your-url.domain/movies.zip"

As python module:

python -m zipdeploy.zipdeploy --content-destination /dev/shm/your/target/destination --update-interval 15 http://your-url.domain/movies.zip  

In your own code (no periodic checks included, threading is your job):

from zipdeploy.zipdeploy import ZipDeploy

zd = ZipDeploy("http://your-url.domain/movies.zip", "/dev/shm/your/target/destination")
zd.download_if_required()

Using Docker:

# make sure to mount /your/target/destination into the container, if you plan to do something useful ;-)
docker run ghcr.io/hgross/zip-deploy --content-destination /your/target/destination --update-interval 15 http://your-url.domain/movies.zip

Disclaimer

This project is my playground project to get to know GitHub Actions for automated package publishing/Release pipelines on GitHub. Don't expect maintenance, but feel free to use this tool if it helps you out. I created it on a weekend for a friend who set up an e-ink display project on his Raspberry Pi.

Metadata

Release files for zip-deploy 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zip-deploy 0.1.5
File Size Uploaded Provenance Actions
zip-deploy-0.1.5.tar.gz 5.2 kB Without provenance Details for zip-deploy-0.1.5.tar.gz

Release files / zip-deploy-0.1.5.tar.gz

Download URL zip-deploy-0.1.5.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
19fcecffd1dfecae632f365644cf9324c08992928ad20807ff3ffaaef6fcbfca
BLAKE2b-256 checksum
How to use checksums
224540d2bc33baf673481a1ca5ded48210949fa202f8a1aabe2fc726a2b212ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Security for zip-deploy 0.1.5

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.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file No provenance

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