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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file s3uploader-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for s3uploader-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0b0e94649fbd1628c5d99aa2b54e320793da34cdcf4d823aefc92e61fd276c
MD5 371c4b5b9ca59330c4a667a71e74776a
BLAKE2b-256 09d388f865dac152b7fd5f5f5a4c70ef71532a238168dbb365bb46d1479eab44

See more details on using hashes here.

Supported by

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