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
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 ha_s3_tool-0.1.0.tar.gz.
File metadata
- Download URL: ha_s3_tool-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37fbfd40214a26649b5ffcbf296d73972ef242980589ab8bb788c367ef21c3b1
|
|
| MD5 |
715008cbbeef7524085a8a1c4e331e7c
|
|
| BLAKE2b-256 |
e8d4fcce9e987aea4bc87c99474414a12328914b6c9a61fb78f516b1c3cdbfa0
|
File details
Details for the file ha_s3_tool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ha_s3_tool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f7f980443df570b535259397ea9815cee747fb2cd77ac5ba4ed4d517053d562
|
|
| MD5 |
f6f2d77de04732e76c6c2a2b7f41dae7
|
|
| BLAKE2b-256 |
7b7046c22872f1fddf59923cd6898c622a9141d4840652e48e1fd72fa48969c9
|