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.
Release files for storagedef 0.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 | |
|---|---|---|---|
| storagedef-0.1.tar.gz | 5.5 kB | Details |
Release files / storagedef-0.1.tar.gz
| Download URL | storagedef-0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abb4c99c79840c41dec333c05a9b034469d606f61e0073ce8d5493548e286c6e
|
|
BLAKE2b-256 checksum How to use checksums |
1d986b212efedb245ae2c80ad9035429c523fe717478cbbe4b9ece92b86163f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |