Skip to main content

Use a git repo as a key-value store.

Project description

# Python Module Template gitkv
## Overview

Use a git repo as a key-value store.

## Usage

import gitkv
with, fname) as f:

## Documentation


## Installation
GitKV depends on libgit2:

$ wget
$ tar xzf v0.25.0.tar.gz
$ cd libgit2-0.25.0/
$ cmake .
$ make
$ sudo make install

On a Debian system, make sure you install the following packages first:

$ apt-get install git
$ apt-get install libffi6 libffi-dev

To install use pip:

$ pip3 install gitkv

Or clone the repo:

$ git clone
$ python3 install


The verification step may fail if the dynamic linker does not find the libgit2 library:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/Téléchargements/gitkv/gitkv/", line 1, in <module>
from .gitkv import *
File "/root/Téléchargements/gitkv/gitkv/", line 22, in <module>
import pygit2
File "/usr/local/lib/python3.6/site-packages/pygit2-0.25.0-py3.6-linux-x86_64.egg/pygit2/", line 32, in <module>
from _pygit2 import *
ImportError: cannot open shared object file: No such file or directory

This happens for instance in Ubuntu, the libgit2 library is installed within the /usr/local/lib directory, but the linker does not look for it there. To fix this call ldconfig:

$ sudo ldconfig

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gitkv, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size gitkv-0.0.2.tar.gz (7.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page