Skip to main content

Dict-style key value wrapper around some embeded databases

Project description

Dict-style key value wrapper around some embeded databases


>>> import unidbm
>>> db ='sqlite', path=':memory:')

Set and get data:

>>> db[u'foo'] = ['bar', {'baz': 1}]
>>> db[u'foo']
['bar', {'baz': 1}]


>>> [key for key in db] == [u'foo']


>>> del db[u'foo']
>>> len(db)

- sqlite
- kyoto cabinet
- semidbm

Custom backend
Backend works with bytes (str in py2) keys and values.
It should implement next methods:

- __init__(self, path, **any_options)
- def __getitem__(self, key):
- def __setitem__(self, key, value):
- def __len__(self):
- def __iter__(self):
- def close(self):

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

unidbm-0.1.1.tar.gz (3.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page