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.

Source Distribution

link.kvstore-1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

link.kvstore-1.0-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file link.kvstore-1.0.tar.gz.

File metadata

  • Download URL: link.kvstore-1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for link.kvstore-1.0.tar.gz
Algorithm Hash digest
SHA256 1c739b3b95c93b1096b67c19cb644969702fd1c564d26e8746ddb99b79aa22b2
MD5 23e67a8cdf40a54a4688b9710b0adcc2
BLAKE2b-256 3c90904d4f1828f9e6fc0e0aaa6220db4ddb08c40796deb67bfa8e8a7312d7ac

See more details on using hashes here.

File details

Details for the file link.kvstore-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for link.kvstore-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eecccbd81ecb8cefa4eb046787b663ecb1ea8346694aa8c27e37a361dbfdcd81
MD5 fdd54beaa63960435e430805bef890ae
BLAKE2b-256 52ef93278c6704d7d342cc0e39ed07b4e452f94d4d7a0c72b964b8365bd10f1a

See more details on using hashes here.

Supported by

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