upload, download, check file availability, and get all available list from AWS s3 bucket.
Project description
aws-s3-cli
Scrape Search Engine :
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)
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.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for aws_s3_cli-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bee66b1d2fb4ee54ee730ace8cf9ce2ecd7608c3347c7aa83871be0b2b5595 |
|
MD5 | eea287b778f9374b1a88eac409aaa994 |
|
BLAKE2b-256 | 906dbc0e55f20c62f0266f79d1c34e65235f313ca12f34b9a046ef09c75c09a5 |