Skip to main content

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 | RSS feed

This version

0.1

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 Distribution

s3uploader-0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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