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.0.tar.gz
(366.1 kB
view details)
File details
Details for the file openS3-0.1.0.tar.gz.
File metadata
- Download URL: openS3-0.1.0.tar.gz
- Upload date:
- Size: 366.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed947d2143a8f3964e6bd890883d64aa4e0e9e13ebd599d32108ae4eb442fa78
|
|
| MD5 |
a161dc945f66d2ba0ef72b3be1b2e937
|
|
| BLAKE2b-256 |
8a460753a406dce2e79d9ce7ae99c512709e2aa7e6ff4b182a786aa2ded43f57
|