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')
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 | |
|---|---|---|---|
| ustorage-0.1.1.tar.gz | 7.3 kB | Details |
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
|