Updates
Work on this package has ceased. Development efforts have been moved to openS3. https://pypi.python.org/pypi/openS3
Installation
To install the latest stable version of py3s3:
$ pip install py3s3
To install the latest development version:
$ git clone git@github.com:logston/py3s3.git $ cd py3s3 $ python setup.py install
Usage
>>> file_name = '/testdir/test.txt'
>>> file = S3ContentFile("My file's content", file_name, mimetype='')
>>> storage = S3Storage('file/name/prefix', 'my_bucket', AWS_ACCESS_KEY, AWS_SECRET_KEY)
>>> storage._save(file_name, file)
>>>
>>> new_file = storage._open(file_name)
>>> print(new_file.content)
My file's content
Testing
Before you can run the test suite, you will need to set the following environment variables:
export AWS_S3_BUCKET='<bucket name>' export AWS_S3_ACCESS_KEY='<access key>' export AWS_S3_SECRET_KEY='<secret key>'
Once the environment variables have been set, the test suite can be run with:
python setup.py test
Metadata
Release files for py3s3 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py3s3-0.2.4.tar.gz | 371.6 kB | Without provenance | Details for py3s3-0.2.4.tar.gz |
Release files / py3s3-0.2.4.tar.gz
| Download URL | py3s3-0.2.4.tar.gz |
|---|---|
| Size | 371.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
695f653cc5e59f7dc28ad037406aafbdd9c10182082575fe7ef140663983875a
|
|
BLAKE2b-256 checksum How to use checksums |
7cb1535bf1d18a260bc3a8add1fa5583ba3d48c0eceac37c7a310acf08b6ba42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for py3s3 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.