git-interface

Use the git cli from Python


Keywords
git, scm
License
MIT
Install
pip install git-interface==0.10.0

Documentation

Git Interface

PyPI PyPI - Python Version PyPI - Downloads GitHub GitHub issues GitHub last commit

Use the git cli from Python.

This project currently is not heavily tested and not fully feature complete

Requirements

  • Git (version 2.30)

Example Of Use

import asyncio
from git_interface.branch import get_branches

head, other_branches = asyncio.run(get_branches("my_git_repo.git"))

print("HEAD = ", head)
print("OTHER", other_branches)