JSON的Git
项目描述
git你的字典
使用Git作为Python中的键值存储,可以跟踪和合并任意数据
>>> r = jsongit.init('repo') >>> r.commit('foo', {}) >>> r.checkout('foo', 'bar') >>> r.commit('foo', {'roses': 'red'}) >>> r.commit('bar', {'violets': 'blue'}) >>> r.merge('foo', 'bar').message Auto-merge of be92d3dcb6 and dbde44bada from shared parent 5d55214e4f >>> r.show('foo') {u'roses': u'red', u'violets': u'blue'} >>> for commit in r.log('foo'): ... print(commit) 'foo'='{u'roses': u'red', u'violets': u'blue'}'@fc9e0f3106 'bar'='{u'violets': u'blue'}'@be92d3dcb6 'bar'='{}'@5bb29ad7dc 'foo'='{u'roses': u'red'}'@dbde44bada 'foo'='{}'@5d55214e4f
安装
Libgit2用于构建和修改Git仓库。您可以在此处找到安装说明。
Pip处理其余部分
$ pip install jsongit
您可以在文档中找到完整的安装说明。
文档
文档位于Read the Docs。
项目详情
关闭
jsongit-0.0.7.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4354af4ecd48b856655a6c74accfe13427db35cbae54656c9cf19718fe8a085a |
|
MD5 | c5a8d2bfcf693e0915e33339b3bc9163 |
|
BLAKE2b-256 | 5ae5b068d3e1401aff91e60a45b2e0da4876fd631e5de79094ae91be6e1f2bd9 |