Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 718 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 718 Bytes

yapdict

License: MIT Python: v3.6

yapdict is sqlite-backed storage with a Python dict API.

Example

>>> import yapdict
>>> store = yapdict.Store('test.kv', timeout=2)
>>> store['a'] = '1'
>>> store['b'] = '2'
>>> store['a']
'1'
>>> 'b' in store
True
>>> 'c' in store
False
>>> store.update({'c': '3'})
>>> store == {'a': '1', 'b': '2', 'c': '3'}
True

Installing & Testing

To install yapdict:

$ pip install yapdict

To run the tests, issue the following command:

$ python setup.py test