Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ustorage, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ustorage-0.1.1.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page