No project description provided
Project description
s3-uncompress
This library is used to uncompress files that are in s3. It creates a CompressedFile object wich have two methods with extraction capabilities using memory or disk.
Object creation example
If the file name contains the extension, the compression type will be get from there, if not, the compressed_type parameter needs to be setted (Ex: "zip", "rar", "x-rar", "x-rar-compressed", "vnd.rar").
CompressedFile(s3_bucket_name='example-source-bucket', s3_key='example.zip', compressed_type=None)
uncompress_using_memory
Reads the compressed object directly from an S3 bucket and loads the content in bytes over memory. Then iterates to extract each file to the defined S3 destination.
uncompress_using_memory(s3_target_bucket='example-target-bucket', s3_target_key='example/target/key')
uncompress_using_disk
Downloads the compressed object from an S3 bucket to a local path. Then iterates the content to extract each file to the same local path, and finally upload all files to the defined S3 destination and delete local_path.
uncompress_using_disk(local_path='example_local_path', s3_target_bucket='example-target-bucket', s3_target_key='example/target/key')
Supported Formats
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
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
File details
Details for the file s3_uncompress-0.1.0.tar.gz.
File metadata
- Download URL: s3_uncompress-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30dcba6fc8716de2e2d832c96516b42d3232f604a550801a8ae4131a4ac8df51
|
|
| MD5 |
32d50dc50ce40ffbd2ff11948d751330
|
|
| BLAKE2b-256 |
12331a941139854fbea70c63567f93bc86b08f4d274066986463c7bbcdaf5baa
|
File details
Details for the file s3_uncompress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: s3_uncompress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73f50bb87d977c8d74c7ebeba8a1452950fe3f2e8cf8b7db2c29ce2e6d771051
|
|
| MD5 |
4d3856f245a95d593ba0381108fa35d1
|
|
| BLAKE2b-256 |
cb20a12c851ecffb6f59d42444d317bcd8a2a116bc237ae7813f7af3bd763091
|