Skip to main content

Database agnostic key/value store API

Project description

link.kvstore is a database agnostic key/value store API.

See documentation for more informations.

License Development Status Latest release Supported Python versions Supported Python implementations Download format Build status Code test coverage Downloads Code Health

Installation

pip install link.kvstore

Features

  • database agnostic
  • dict API to access key/value store

Examples

Getting a backend:

from link.middleware.core import Middleware

# Instanciate a K/V store with Riak backend
store = Middleware.get_middleware_by_uri(
    'kvstore+riak://localhost:8087/mybuckettype/mybucket?protocol=pbc'
)
# Instanciate a K/V store with SQL backend
store = Middleware.get_middleware_by_uri(
    'kvstore+sql://localhost:5432/database/table'
)

Accessing data:

store['foo'] = 'bar'
assert store['foo'] == 'bar'
assert 'foo' in store

for key in store:
    print(key)

del store['foo']

Donating

Support via Liberapay

Project details


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
link.kvstore-1.0-py2.py3-none-any.whl (7.6 kB) Copy SHA256 hash SHA256 Wheel 3.4 Sep 9, 2016
link.kvstore-1.0.tar.gz (5.4 kB) Copy SHA256 hash SHA256 Source None Sep 9, 2016

Supported by

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