Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
storagedef-0.1.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None May 9, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page