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.3.tar.gz
(13.6 kB
view details)
File details
Details for the file jsongit-0.0.3.tar.gz
.
File metadata
- Download URL: jsongit-0.0.3.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4767189e9584469d884eaee8619409fa9b3364b02000d75527f2690d30cea2 |
|
MD5 | 52d1157e4c0c15b8bce3da1b2d6665f3 |
|
BLAKE2b-256 | 0f6dd8f4806902e5b1347a449d596c1981dd59eb97f24a9f5dd5a4fb59ed4ca1 |