skip to navigation
skip to content

link.kvstore 1.0

Database agnostic key/value store API

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

See documentation for more informations.

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

 
File Type Py Version Uploaded on Size
link.kvstore-1.0-py2.py3-none-any.whl (md5) Python Wheel 3.4 2016-09-09 7KB
link.kvstore-1.0.tar.gz (md5) Source 2016-09-09 5KB