openS3
Python 3 & AWS S3
Status
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 attached to the previous 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!'
Further Documentation
Further documentation can be found on Read the Docs.
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.2.tar.gz
(366.3 kB
view details)
File details
Details for the file openS3-0.1.2.tar.gz.
File metadata
- Download URL: openS3-0.1.2.tar.gz
- Upload date:
- Size: 366.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da816f37b052230598d771751f8022ea2fb6dc84ed8c5d972745870fa89b280b
|
|
| MD5 |
bfe162323109743ec9f2b1bb5ae6e4f8
|
|
| BLAKE2b-256 |
dd83e557e8cffa9ab24a664cb97789e339bbaaa09657b7f24ebb24a92dc9eac6
|