The pyrepositoryminer aims to be a performant, extendable and useful tool for analyzing (large) software repositories.
Install it from PyPI:
$ pip install pyrepositoryminer
Python 3.9+, libgit2 (e.g. brew install libgit2
on macOS).
pyrepositoryminer builds on the work of pygit2 for the interaction with git repository objects, typer for the CLI, radon for Python-specific metrics, and uvloop for an alternative event loop.
Install poetry:
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
Install the dependencies:
$ poetry install
Install the pre-commit hooks:
$ pre-commit install