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.2.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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ha_s3_tool-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1aceb296a7d144a6e83c51fcc0654b6c03144bda04285b0e84c30079412d41b0
MD5 6197d3191120fc0df74ecc95da544437
BLAKE2b-256 7605875fb029d29049a4576d538f1796f740ce8ec3e4c89646dc4f0f74f48d08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ha_s3_tool-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf7062c817efec099c8edfa22aee1abb775ae00f93d03647ec7e3ddc149eb021
MD5 8d42651a501d91af131deb23f8a80811
BLAKE2b-256 7de7a7e6fa272df8b78c39597c32094c29b4fd09804f709f586964d95c5b4e96

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