Skip to main content

A key-value store supporting multiple backends.

Project description

A generic interface wrapping multiple different backends to provide a consistent key-value storage API. This library is intended to be used by other libraries that require some form of generic storage.

Usage

from anykeystore import create_store

store = create_store('sqla', url='postgres+psycopg2://bob@localhost/mydb')

settings = {
    'mystore.store': 'sqla',
    'mystore.url': 'mysql://bob@localhost/mydb',
}
store = create_store_from_settings(settings, prefix='mystore.')

Supported Backends

  • memory

  • sqlalchemy

    requires: sqlalchemy

  • mongodb

    requires: pymongo

  • redis

    requires: redis-py

  • memcached

    requires: python-memcached, or python3-memcached

Project details


Download files

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

Source Distribution

anykeystore-0.2.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file anykeystore-0.2.tar.gz.

File metadata

  • Download URL: anykeystore-0.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for anykeystore-0.2.tar.gz
Algorithm Hash digest
SHA256 82ffcd608fea9cfaa903b7731c47a8d36ba346bf49cf98f8dabee83083d08412
MD5 cc331cc5aa6eea38e498cd9cd73e8241
BLAKE2b-256 aadcc4399c0e6b835710763705220f9c37681683f950678db799a5c7eda9e154

See more details on using hashes here.

Supported by

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