Skip to main content

Abstract storage interfaces

Project description

Abstract storage layer


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


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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page