Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Upload files to an Amazon S3 bucket

Project description

A simple application to upload files to an Amazon S3 bucket. Behind the scenes this script uses the awesome Boto3 library to access the Amazon Web Services.

Quickstart

The application uses the AWS credentials file located in ~/.aws/credentials

usage: s3uploader.py [-h] [–verbose] [–store-paths] bucket file [file …]

Upload files to an Amazon S3 bucket

positional arguments:
bucket Name of the S3 bucket to use file File to upload to the S3 bucket
optional arguments:
-h, --help show this help message and exit
--verbose Give verbose output while uploading files
--store-paths Store the file path in the S3 object name

Options

--store-paths If this flag is set the S3 object will stored with the path you specify, otherwise the filenamewill be used as the object name. Using this approach it is possible to simulate a directory structure on S3.
--verbose Give verbose output while uploading files to S3.

Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
s3uploader-0.1-py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 28, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page