Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.2 KB

File metadata and controls

47 lines (31 loc) · 1.2 KB

Codacy Badge

pygit

This is no longer maintained. Though pygit has some nice checks for instantiating the git object, I suggest using sultan for anything subprocess related, including git commands.

Easy to use git utility for python.

Just instantiate a pygit object with git = PyGit("/path/to/repo/") and use git as you would normally.

Returns stdout from git as a list.

Usage

>>> from pygit import PyGit
>>> git = PyGit("/path/to/repo/")
>>> git("checkout master")
[ "Switched to branch 'master'", "Your branch is up-to-date with 'origin/master'."]

>>> git("describe --tags")
['1.4.0-rev23']

>>> git("tag --contains ex4m9le*c00m1t*h4Sh")
['1.4.0-rev23', 'MY-SECOND-TAG-rev1']

Install

pip install git+git://github.com/mijdavis2/pygit.git

Require

In requirements.txt file:

git+git://github.com/mijdavis2/pygit.git@0.1.3#egg=pygit

License

MIT © mijdavis2