Skip to main content

A simple command line utility for generating time-sensitive, sharable urls for private s3 files

Project description

s3url is a simple command line utility for generating time-sensitive, sharable urls for private s3 files.

Examples

Generate a signed URL valid for 24 hours to download file/to/share.txt from the bucket named my-bucket:

$ s3url my-bucket/file/to/share.txt

Also accepts s3:// style URIs:

$ s3url s3://my-bucket/file/to/share.txt

Or http(s):// URIs (with the bucket as the subdomain or in the path):

$ s3url http://s3.amazonaws.com/my-bucket/file/to/share.txt
$ s3url https://my-bucket.s3.amazonaws.com/file/to/share.txt

Specify the time until expiration (1 hour and 30 minutes from now):

$ s3url -e 1h30m my-bucket/file/to/share.txt

AWS credentials are loaded from environment variables by default. Export the variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. To specify them at the command line, use:

$ s3url -k YourAccessKeyId:YourSecretAccessKey my-bucket/file/to/share.txt

Installation

Install with `pip <http://www.pip-installer.org/>`__:

$ pip install s3url

License

Copyright © 2014 Ford Hurley ford.hurley@gmail.com

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.

PyPI version PyPI downloads

Project details


Download files

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

Source Distribution

s3url-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file s3url-0.1.1.tar.gz.

File metadata

  • Download URL: s3url-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for s3url-0.1.1.tar.gz
Algorithm Hash digest
SHA256 987091a7bd2602cbe0e8647ddac8c5ee2b392f738c02754ed9bcdd0fd772fd75
MD5 8efe91d36f7fb2f350f121396ece74bc
BLAKE2b-256 91d41610c7049eba9f1d94756ccf1d701ba85882f55e6c93f4e4c110cf3046a9

See more details on using hashes here.

Supported by

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