Blame the world with git-pandas
I’ve just pushed the first release of git-pandas to pypi, so you can now:
pip install git-pandas
Then in a few lines:
from gitpandas.project import ProjectDirectory
projd = ProjectDirectory(working_dir='foo/bar/')
blame = projd.blame(extensions=['py'], ignore_dir=['lib'])
print(blame)
Get the aggregated git blame of every project within a directory and its subdirectories, in the form of a pandas DataFrame. For fun, vanity, and probably not profit.
For now blame and commit history are the supported functions, be I aim to gradually add more as time goes on. The primary goal is to simply provide a dumb pandas-based interface to singular repositories, and then roll those up to the project directory level (so aggregates across a collection of repositories). The secondary goal is to provide interesting use cases and examples as we come across them, the first of which was this aggregated git blame one.
Let me know what you think, or if you’d like to contribute.
Subscribe to the Newsletter
Get the latest posts and insights delivered straight to your inbox.