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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

Details for the file s3manager-1.4-py3-none-any.whl.

File metadata

  • Download URL: s3manager-1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for s3manager-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5cca26decb83a78e12d998c0195d9704099e0a342fe0cc6f936e33804f28a28b
MD5 d6e0b0f869cd6c00b97553a6c2653ebb
BLAKE2b-256 f7f3b462ec5c1b761769a0f1281f97b160b77643fb7a7fcf79f02901f6f48b09

See more details on using hashes here.

File details

Details for the file s3manager-1.4-py2-none-any.whl.

File metadata

  • Download URL: s3manager-1.4-py2-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 2
  • Uploaded using 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

File hashes

Hashes for s3manager-1.4-py2-none-any.whl
Algorithm Hash digest
SHA256 5aaa84ba7eeb2e338bf802e788e8a4ddf80fdf5349df702804b2f9b9afad3bd3
MD5 64e4aed1eb5900dc487bfde0884e1e3d
BLAKE2b-256 63b607ca92a9a144b28136c706d7e7b4e9ff2c0250bcd1b2ba18c6167c9daf33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page