Socket
Socket
Sign inDemoInstall

aws-s3-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-s3-cli

upload, download, check file availability, and get all available list from AWS s3 bucket.


Maintainers
1

aws-s3-cli :

DownloadsGitHub license PyPI - Python Version PyPI - Wheel PyPI

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

Pypi Package Link

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

GitHub

PyPi

LinkedIn

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc