Skip to main content

A tool for uploading and downloading files and folders to/from S3.

Project description

s3_tool

A tool for uploading and downloading files and folders to/from S3 with progress indication and file existence checks.

Installation

To install the package, run:

pip install s3_tool

During installation, you will be prompted to enter your AWS credentials, which will be stored for future use.

Features

  • Upload files and folders to S3
  • Download files and folders from S3
  • Check if a file exists before uploading or downloading
  • Display progress bar for file uploads and downloads

AWS Credentials

This tool requires AWS credentials to access S3. During the installation, you will be prompted to enter your AWS Access Key ID, AWS Secret Access Key, and AWS Region. These credentials will be stored in ~/.aws/credentials for future use.

Usage

Upload

Upload a single file

To upload a single file to S3, run:

s3-upload /path/to/local/file bucket_name s3/path/to/destination --region your-aws-region

Example:

s3-upload /path/to/local/file.txt my-bucket my-folder/file.txt --region us-east-1

Upload a folder To upload a folder to S3, run:

s3-upload /path/to/local/folder bucket_name s3/path/to/destination --region your-aws-region

Example:

s3-upload /path/to/local/folder my-bucket my-folder --region us-east-1

Download

Download a single file

To download a single file to S3, run:

s3-download bucket_name s3/path/to/source /path/to/local/destination --region your-aws-region

Example:

s3-download my-bucket my-folder/file.txt /path/to/local/file.txt --region us-east-1

Download a folder To download a folder to S3, run:

s3-download bucket_name s3/path/to/source/ /path/to/local/destination --region your-aws-region

Example:

s3-download my-bucket my-folder/ /path/to/local/folder --region us-east-1

Notes

  • The tool will check if a file exists in the destination before uploading or downloading. If the file already exists, it will skip the operation and print a message.
  • A progress bar will be displayed during the upload and download of files and folders.

Author

Manuel Rodriguez Ladron de Guevara

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

ha_s3_tool-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

ha_s3_tool-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ha_s3_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for ha_s3_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 32125130365a328b4861af75799087bf84740c471d8c013c2a11c0abbc4e8ee7
MD5 9eb55ea2d76347618a386d287750690c
BLAKE2b-256 37b4fb598b5cc89e85929935615526e93774c52d80683887b959dee0eb910284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ha_s3_tool-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for ha_s3_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01e8aa63c36879f2b932d881882189fccd40d204bea5373a7cdd6d3d5ec309ef
MD5 0bc1d094b119adbc8a08f0cb8464738d
BLAKE2b-256 3e8b011963c4eb40b4cc0a85ede3c634d3a9f1430601489c891deebd9d78985b

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