Skip to main content

This packages helps to upload, download zip of multiple files, delete file from s3.

Project description

Python Script to upload files to AWS

This script is a wrapper over boto3 which makes developer easy to upload files to AWS

Getting Started

Steps to get started:-

  1. pip install s3manager

Steps to Use:-

from s3manager import S3manager
s3_object_manager = S3manager(bucket_name="bucketname", access_key=<access_key>, access_secret=<access_secret>)

To upload file to s3

s3_object_manager.upload_file(file_name=<file_name>, filepath=<filepath>, acl='public-read')

In response result will have url to the file uploaded and the key name of file in bucket

to delete the object

s3_object_manager.delete_file(key)

to download the zip of multiple files

s3_object_manager.download_files_in_zip(['fileobjkey1', 'fileobjkey2'],'nameofnewzip')

this will create a zip file in current directory and will return zip file name

Prerequisites

boto3 should be installed

Built With

  • [python3]
  • [boto3]

Authors

  • Anshul Gupta - Initial work - [AwsS3Manager]

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distributions

s3manager-1.4-py3-none-any.whl (15.4 kB view hashes)

Uploaded py3

s3manager-1.4-py2-none-any.whl (15.4 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page