openS3
======
|docs| |tests|
A Pythonic way to upload and download from AWS S3.
Installation
============
::
$ pip install openS3
To install the latest development version::
$ git clone git@github.com:logston/openS3.git
$ cd openS3
$ python setup.py install
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`_.
.. _Read the Docs: http://opens3.readthedocs.org/en/latest/
.. |docs| image:: https://readthedocs.org/projects/opens3/badge/
:alt: Documentation Status
:scale: 100%
:target: http://opens3.readthedocs.org/en/latest/
.. |tests| image:: https://travis-ci.org/logston/openS3.svg
:target: https://travis-ci.org/logston/openS3
======
|docs| |tests|
A Pythonic way to upload and download from AWS S3.
Installation
============
::
$ pip install openS3
To install the latest development version::
$ git clone git@github.com:logston/openS3.git
$ cd openS3
$ python setup.py install
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`_.
.. _Read the Docs: http://opens3.readthedocs.org/en/latest/
.. |docs| image:: https://readthedocs.org/projects/opens3/badge/
:alt: Documentation Status
:scale: 100%
:target: http://opens3.readthedocs.org/en/latest/
.. |tests| image:: https://travis-ci.org/logston/openS3.svg
:target: https://travis-ci.org/logston/openS3
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.3.tar.gz
(660.3 kB
view details)
File details
Details for the file openS3-0.1.3.tar.gz.
File metadata
- Download URL: openS3-0.1.3.tar.gz
- Upload date:
- Size: 660.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa61171951284c0121fda669d5ca24cab8514888cfd0fb3a42c95016e48fb03
|
|
| MD5 |
c363e5364947d9457a1f45e0143cd104
|
|
| BLAKE2b-256 |
90537b7f850cde4f62a65af290d45ade9910f01db3e296997ce668e2f2821120
|