|Jeffrey Paul 95767ae684 initial||3 years ago|
|jsondict||3 years ago|
|tests||3 years ago|
|.gitignore||3 years ago|
|Dockerfile||3 years ago|
|LICENSE||3 years ago|
|Makefile||3 years ago|
|Pipfile||3 years ago|
|Pipfile.lock||3 years ago|
|README.markdown||3 years ago|
|circle.yml||3 years ago|
|setup.cfg||3 years ago|
|setup.py||3 years ago|
This is a python package called jsondict that wraps a dict to provide dumb json file backed persistence.
It also returns a default of
None for missing keys instead of KeyError,
because an exception for an undefined key is annoying, so it’s sort of like
It’s not general purpose, and it’s not for large amounts of data. It’s just sort of like a standard dictionary that you don’t need to worry about reading/saving to disk. It’s naive and inefficient but perfect for application configs and whatnot. Don’t be silly and put more than a few kilobytes in this, the whole file is written out every update and the whole file is re-read and re-parsed every read.
pip3 install --upgrade pipenv git clone https://github.com/sneak/jsondict.git cd jsondict pipenv install --three .
Right now it’s only tested on python3. Python2 support is desired.
Jeffrey Paul firstname.lastname@example.org