Unified Storage Interface for Python.
Project description
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ustorage-0.1.1.tar.gz
(7.3 kB
view details)
File details
Details for the file ustorage-0.1.1.tar.gz
.
File metadata
- Download URL: ustorage-0.1.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa8b5077b42acf672d54febacf965036789b1e48fb55156fedd5061d6bab86e5 |
|
MD5 | b77368a5dbaa2c778482cf80de3b7587 |
|
BLAKE2b-256 | 4d405ff4976e28a92f8ee47d6e1f61504582f3b5d4165534f601eded4a00721d |