A package to create a ZIP archive of all your files on S3
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zip3-1.0.2.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zip3-1.0.2-py3-none-any.whl
(3.7 kB
view details)
File details
Details for the file zip3-1.0.2.tar.gz.
File metadata
- Download URL: zip3-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e5b06315d089adf11f8eff97d39c609159673a416fba0ab7aa1aec2159db2e6
|
|
| MD5 |
4b91b01aef99c036a52ae1bce5101f55
|
|
| BLAKE2b-256 |
69df88fd3cc27dceca261fe31575a0e28974cef5d702aa63607de91db112c601
|
File details
Details for the file zip3-1.0.2-py3-none-any.whl.
File metadata
- Download URL: zip3-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f6a3d20bd5451141c3901a5feebd56afbf16d461612aa6ecc63b098b7a6648
|
|
| MD5 |
a762d31bf704330f9514547b829db744
|
|
| BLAKE2b-256 |
796f9699d64a7b7eb0fc4c596db8a1f0e7952d822b0be48ffc61ec01229d008d
|