Zip3
Select a directory in your S3 bucket, generate a ZIP archive out of it, and save the ZIP on a destination of your choice in your S3 bucket.
How it works
- Everything is kept in memory throughout the whole process; no temporary files are created
- A simple interface: call
Zip3.generate(input_directory, output_key)(whereinput_directoryis the directory in S3 that you want to ZIP, andoutput_keyis where you want the newly-generated ZIP to get saved) and you're good to go!
How to use it
import boto3
from zip3 import Zip3
# Set up connection to S3
conn = boto3.resource("s3", region_name="eu-west-2")
# Instantiate Zip3 with your S3 bucket
Z3 = Zip3(conn, s3_bucket=bucket_name)
output_key = "test_folder/archive2.zip"
input_directory = "test_folder"
# Generate ZIP and save it on S3
Z3.generate(input_directory, output_key)
How to contribute
- Create a PR with your changes
- Create an Issue with something you would like from this library
Metadata
Release files for zip3 1.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 |
|---|---|---|---|---|
| zip3-1.0.2.tar.gz | 2.4 kB | Without provenance | Details for zip3-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zip3-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for zip3-1.0.2-py3-none-any.whl |
Total release size: 6.1 kB
Release files / zip3-1.0.2.tar.gz
| Download URL | zip3-1.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e5b06315d089adf11f8eff97d39c609159673a416fba0ab7aa1aec2159db2e6
|
|
BLAKE2b-256 checksum How to use checksums |
69df88fd3cc27dceca261fe31575a0e28974cef5d702aa63607de91db112c601
|
| 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.48.2 CPython/3.8.2
|
Release files / zip3-1.0.2-py3-none-any.whl
| Download URL | zip3-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69f6a3d20bd5451141c3901a5feebd56afbf16d461612aa6ecc63b098b7a6648
|
|
BLAKE2b-256 checksum How to use checksums |
796f9699d64a7b7eb0fc4c596db8a1f0e7952d822b0be48ffc61ec01229d008d
|
| 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.48.2 CPython/3.8.2
|
Security for zip3 1.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.