upload, download, check file availability, and get all available list from AWS s3 bucket.
Project description
aws-s3-cli :
aws s3 bucket cli
upload, download, check file availability, and get all available list from AWS s3 bucket.
Package Installation :
pip install aws-s3-cli
How to import the module:
FILE_OBJ = "" # File object
FILE_NAME = "" # File name
S3_FILE_NAME = "" # S3 file name or uploaded file name
BUCKET_NAME = "" # Bucket name
AWS_ACCESS_KYE = "" # Access key ID
AWS_SECRET_ACCESS_KYE = "" # Secret access key
Upload File :
from aws_s3_cli.aws_s3_cli import upload_file
status = upload_file(BUCKET_NAME, AWS_ACCESS_KYE, AWS_SECRET_ACCESS_KYE, FILE_OBJ, FILE_NAME)
print(status)
Download File :
from aws_s3_cli.aws_s3_cli import download_file
status = download_file(BUCKET_NAME, AWS_ACCESS_KYE, AWS_SECRET_ACCESS_KYE, S3_FILE_NAME, FILE_NAME)
print(status)
Check File Status :
from aws_s3_cli.aws_s3_cli import check_file_status
status = check_file_status(BUCKET_NAME, AWS_ACCESS_KYE, AWS_SECRET_ACCESS_KYE, S3_FILE_NAME)
print(status)
Get All File List :
from aws_s3_cli.aws_s3_cli import get_all_file_list
file_list = get_all_file_list(BUCKET_NAME, AWS_ACCESS_KYE, AWS_SECRET_ACCESS_KYE)
print(file_list)
Get All File Dictionary :
from aws_s3_cli.aws_s3_cli import get_all_file_dict
file_dict = get_all_file_dict(BUCKET_NAME, AWS_ACCESS_KYE, AWS_SECRET_ACCESS_KYE)
print(file_dict)
Required package’s:
• pip install boto3
License:
MIT Licensed
Author:
Sujit Mandal
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
aws-s3-cli-0.0.6.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file aws-s3-cli-0.0.6.tar.gz
.
File metadata
- Download URL: aws-s3-cli-0.0.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d40ed30d285bd0a1709ded86306f7ece329755f441d76f3c5a7d8f9aca698d2 |
|
MD5 | 8ef000eea1edbfee179b550bf74b1b32 |
|
BLAKE2b-256 | 35fa3e7b74b59af37df4cc5bb012f330a053ee5e8c5c7791112fff6bb78404c8 |
File details
Details for the file aws_s3_cli-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: aws_s3_cli-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40eb3cfc2efaced2488bca087f378809f827ea14b8f28201e0dedd681df173c0 |
|
MD5 | cac75d32ba97488451d9939c3ff75736 |
|
BLAKE2b-256 | 016e8e7b95b12d07713e081ec86ba3bc905a3d8e5ac59527e70c6229dfd8d074 |