UStorage
Unified Storage Interface for Python. Copied and decoupled from Flask-FS for working anywhere.
Thanks to Flask-FS
See also django-storages
Installation
$ pip install ustorage
Quick start
from ustorage.s3 import S3Storage
options = {
'endpoint': 'https://s3.cn-north-1.amazonaws.com.cn',
'access_key': '<AccessKey>',
'secret_key': '<SecretKey>',
'bucket': 'my-bucket',
'region': 'cn-north-1',
}
fs = S3Storage(options)
fs.write('hello.txt', 'Hello, World!')
fs.exists('hello.txt')
fs.read('hello.txt')
fs.delete('hello.txt')
Metadata
Release files for ustorage 0.1.1
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 |
|---|---|---|---|---|
| ustorage-0.1.1.tar.gz | 7.3 kB | Without provenance | Details for ustorage-0.1.1.tar.gz |
Release files / ustorage-0.1.1.tar.gz
| Download URL | ustorage-0.1.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa8b5077b42acf672d54febacf965036789b1e48fb55156fedd5061d6bab86e5
|
|
BLAKE2b-256 checksum How to use checksums |
4d405ff4976e28a92f8ee47d6e1f61504582f3b5d4165534f601eded4a00721d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for ustorage 0.1.1
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.