Git for JSON
Project description
git your dict
Use Git as a key-value store that can track and merge arbitrary data in Python:
>>> r = jsongit.init('repo') >>> foo = r.commit('foo', {}) >>> bar = r.merge('bar', 'foo').result >>> foo['roses'] = 'red' >>> bar['violets'] = 'blue' >>> foo.commit() >>> bar.commit() >>> foo.merge(bar).message u'Auto-merge from ee0badced484570b36bb219ad81567098e9995a7' >>> foo.value {u'roses': u'red', u'violets': u'blue'} >>> log = foo.log() >>> pprint([commit.object.value for commit in log]) [{u'roses': u'red', u'violets': u'blue'}, {u'violets': u'blue'}, {}, {u'roses': u'red'}, {}] ...
Installation
Libgit2 is used to build and modify the git repository. You can find instructions for installing it here.
Pip handles the rest:
$ pip install jsongit
You can find full installation instructions in the documentation.
Documentation
Documentation is on Read the Docs.
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
jsongit-0.0.6.tar.gz
(16.7 kB
view details)
File details
Details for the file jsongit-0.0.6.tar.gz
.
File metadata
- Download URL: jsongit-0.0.6.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3926192722863744cac9ef2c46f17d66292f2d614d63531d0676b67ec45b1bd |
|
MD5 | dd6814e4162112478f734b987dd230ac |
|
BLAKE2b-256 | d412d5abe81bd76b6436a3d8d12119bed997c2da7d6891d3f9210e554922b7ef |