Skip to main content

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

Metadata

Release files for s3manager 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for s3manager 1.4
File Interpreter ABI Platform
s3manager-1.4-py3-none-any.whl Python 3 none any Details
s3manager-1.4-py2-none-any.whl Python 2 none any Details

Total release size: 30.7 kB

Release files / s3manager-1.4-py3-none-any.whl

Download URL s3manager-1.4-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cca26decb83a78e12d998c0195d9704099e0a342fe0cc6f936e33804f28a28b
BLAKE2b-256 checksum
How to use checksums
f7f3b462ec5c1b761769a0f1281f97b160b77643fb7a7fcf79f02901f6f48b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / s3manager-1.4-py2-none-any.whl

Download URL s3manager-1.4-py2-none-any.whl
Size 15.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5aaa84ba7eeb2e338bf802e788e8a4ddf80fdf5349df702804b2f9b9afad3bd3
BLAKE2b-256 checksum
How to use checksums
63b607ca92a9a144b28136c706d7e7b4e9ff2c0250bcd1b2ba18c6167c9daf33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3

1 release file

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page