Documentation for AWS S3 In-Memory File Compression (zip) Program
Project description
S3 Simple Compress ZIP
Documentation for AWS S3 In-Memory File Compression (zip) Program
Overview
The AWS S3 file compression (zip) program is a tool that allows users to compress one or more files stored in S3 into a single zip file all in memory without the need to download to your Hard Disk. This can be useful for reducing file sizes and saving storage costs.
Requirements
Before using the AWS S3 file compression (zip) program, you'll need to have the following:
- An AWS account
- Access to the AWS S3 service
- Basic knowledge of command line and AWS
Installation
How to install the project
Overview
The AWS S3 file compression (zip) program is a tool that allows users to compress one or more files stored in S3 into a single zip file all in memory without the need to download to your Hard Disk. This can be useful for reducing file sizes and saving storage costs. Requirements
Before using the AWS S3 file compression (zip) program, you'll need to have the following:
Bash
An AWS account Access to the AWS S3 service Basic knowledge of command line and AWS
Installation How to install the project
For installation of the project's CLI, we recommend using poetry to install:
poetry add s3-compress
Although this is only a recommendation! You can also install the project with your preferred package manager, such as pip:
pip install s3-compress
How to use the program
To use the AWS S3 file compression (zip) program, follow the steps below:
- First, we need to import our package
- Then, instantiate the class
- We may or may not need to call the `credentials` method, depending on whether `~/.aws/credentials` already exists or not
- Finally, we just need to call the `zipping_in_s3` method
The program will compress the specified files and save the compressed zip file in the specified S3 bucket.
Code Example
from s3_compress.zipping_s3 import ZippingS3
zips3 = ZippingS3()
zips3.credentials(
ACCESS_KEY='test',
SECRET_KEY='test',
SESSION_TOKEN='us-east-1'
)
zips3.zipping_in_s3('test', '', 'zip_name')
Here's a Python code example that implements the AWS S3 file compression (zip) program's functionality 100% in memory.
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
Hashes for s3_simple_compress-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e34a23a9134854d5dcda7307d9599546fbe15b1f0ddaddd972c4c0c065a04b56 |
|
MD5 | 981c4b2ae5246a4d80917cf2642c1ed9 |
|
BLAKE2b-256 | d1c6da5b9f863e4e5be62c54c6f08c7634ef1162ba3223bfb4e50619e1b682bd |