Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

s3manager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3manager

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

  • 1.4
  • PyPI
  • Socket score

Maintainers
1

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

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