Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tv42/s3-url-sign
Sign a URL for use with S3
https://github.com/tv42/s3-url-sign
Last synced: 20 days ago
JSON representation
Sign a URL for use with S3
- Host: GitHub
- URL: https://github.com/tv42/s3-url-sign
- Owner: tv42
- License: mit
- Created: 2011-06-21T19:49:22.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-06-22T00:36:05.000Z (over 13 years ago)
- Last Synced: 2024-10-16T02:07:45.057Z (2 months ago)
- Language: Python
- Homepage:
- Size: 81.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======================================================
S3-URL-Sign -- easy way to sign URLs for use with S3
======================================================To get started, type::
./bootstrap
Set up your ``~/.boto`` config file, something like::
[Credentials]
aws_access_key_id = EDIT-ME
aws_secret_access_key = EDIT-MEAnd then run (replace ``BUCKET`` and ``OBJECT`` as appropriate)::
./virtualenv/bin/s3-url-sign BUCKET
./virtualenv/bin/s3-url-sign BUCKET OBJECTSome more examples::
$ wget -q -O- "$(./virtualenv/bin/s3-url-sign BUCKET)"|xmlstarlet fo|head -3
BUCKET$ wget -O SOMETHING "$(./virtualenv/bin/s3-url-sign BUCKET OBJECT)"
--2011-06-21 12:40:15-- https://BUCKET.s3.amazonaws.com/OBJECT?Signature=...&Expires=...&AWSAccessKeyId=...
Resolving BUCKET.s3.amazonaws.com... 207.171.187.118
Connecting to BUCKET.s3.amazonaws.com|207.171.187.118|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10888 (11K) [application/x-object]
Saving to: `SOMETHING'
100%[=========================================================>] 10,888 --.-K/s in 0s
2011-06-21 12:40:15 (39.3 MB/s) - `SOMETHING' saved [10888/10888]