openS3
Python 3 & AWS S3
Installation
$ pip install openS3
Usage
>>> from openS3 import OpenS3
>>>
>>> openS3 = OpenS3('my_bucket', '<access_key>', '<secret_key>')
... with openS3('/my/object/key.txt', mode='w') as fd:
... fd.write('Yeah! Files going up to S3!')
>>>
>>> # Let's create a new OpenS3 object so we know we are not
>>> # just printing saved state on attached to the OpenS3 object.
>>> openS3 = OpenS3('my_bucket', '<access_key>', '<secret_key>')
... with openS3('/my/object/key.txt') as fd:
... print(fd.read())
b'Yeah! Files going up to S3!'
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openS3-0.1.1.tar.gz
(366.1 kB
view details)
File details
Details for the file openS3-0.1.1.tar.gz.
File metadata
- Download URL: openS3-0.1.1.tar.gz
- Upload date:
- Size: 366.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b48b1a563b9aff6568e9b7a44f94295b62af442f5686a8fccdf6d394584edb87
|
|
| MD5 |
b5c174dc08b3706c63ae0f7774cbec5f
|
|
| BLAKE2b-256 |
959043bf1037a9102789725bc100b0913e044bc580f82068f23c414fc36c0141
|