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']
Donating
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.11.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for link.kvstore-0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5525cbd70d93d0ea14aad93ab41d0853a98bd72e0f2dd64a22b4637c41c41d |
|
MD5 | 174df391e584d76abf0f2e3ea1d6afc0 |
|
BLAKE2b-256 | 252b646af1ccfe1d3a5b3bd5c286ff9495d4e4b3f6c7d04e675f22e83e6b2f71 |