Database agnostic key/value store API
Project description
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']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
link.kvstore-0.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for link.kvstore-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7ea5315e984d319fc398b3042852fa9b9509c59a7ddc5d0676e4b89483d150 |
|
MD5 | c6b5d17e4af891c853612b79980e9b0f |
|
BLAKE2b-256 | f792b3561aa2a12956b31a9bf7e1f418a377236c5f9ea6702a21fb5692021c2b |