A python implemetation of git
Maggit is a implementation of git in Python. Maggit doesn’t use subproccess call to git or external C libraries. There is no more dependancy than python standard library.
Maggit need Python 3.4 at least.
The actual version (0.1) is pretty rough:
Here a simple example code equivalent to
git log -n 10 to see how to use maggit:
import maggit # Create a repository repo = maggit.Repo() branches = repo.branches master = branches['master'] commit = master.commit for i in range(10): print(commit.message) commit = commit.parents
See the doc for full information and how to use it.