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

brianjpetersen/yapdict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Yet Another Persistent Dict: yapdict is sqlite-backed storage with a Python dict API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages