Abstract storage interfaces
Project description
Abstract storage layer
Install
from PyPI:
pip install storagedef
from Source:
pip install -e .
How to use
If you use pyramid:
import storagedef
def main(global_config, **settings):
storage_session = storagedef.Session.from_config(settings, prefix='mystorage.')
config = Configurator(settings=settings)
# Some your configuration using storage_session
return config.make_wsgi_app()
Configuration Keys
Example ini-file if you use ‘mystorage.’ as prefix:
mystorage.engine = storagedef.engines.s3:S3StorageEngine mystorage.credentials_file = ~/.aws/credentials mystorage.config_file = ~/.aws/config mystorage.region = ap-northeast-1 mystorage.bucket = some-test-bucket mystorage.acl = public-read
another ini-file using localmem:
mystorage.engine = storagedef.engines.localmemory:LocalMemoryStorageEngine
Change History
0.1 - 2015-05-09
Initial release.
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
storagedef-0.1.tar.gz
(5.5 kB
view details)
File details
Details for the file storagedef-0.1.tar.gz.
File metadata
- Download URL: storagedef-0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abb4c99c79840c41dec333c05a9b034469d606f61e0073ce8d5493548e286c6e
|
|
| MD5 |
c0e75b0f005136aa61a138673daf0189
|
|
| BLAKE2b-256 |
1d986b212efedb245ae2c80ad9035429c523fe717478cbbe4b9ece92b86163f1
|