Skip to main content

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

Python tests codecov Documentation Status

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-simple-compress

Although this is only a recommendation! You can also install the project with your preferred package manager, such as pip:

pip install s3-simple-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s3_simple_compress-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

s3_simple_compress-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file s3_simple_compress-0.1.1.tar.gz.

File metadata

  • Download URL: s3_simple_compress-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/6.2.6-76060206-generic

File hashes

Hashes for s3_simple_compress-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7c1848838cea472d237b6d7f11fd55d0559937d19ba5f838d89776ab085a65e
MD5 599cc8058115a0d5aab2130a4dee24fe
BLAKE2b-256 cba690b38c19d93937b8af84998a41f423249e3eeda95a2fddbe167a91b70a29

See more details on using hashes here.

File details

Details for the file s3_simple_compress-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: s3_simple_compress-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/6.2.6-76060206-generic

File hashes

Hashes for s3_simple_compress-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 739c2703fbb6d8968f2e8d827a4498571453da14b830d5c17b5fbc939b191814
MD5 f2d407739dc018ce3683c4ea6086a45d
BLAKE2b-256 b0aceaf70497628210da0fd7a8ca8956c4dbc1cd9fbf77e8f65adf4389a1e93c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page