Skip to main content

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

This version

0.1

Download files

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

Files for storagedef, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size storagedef-0.1.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page