Skip to main content

Git Commit Lines Graph

PyPI Python Version License: GPL v3+ Downloads

A small python script to visualize the number of lines in a project, as a function of time.

Install

uv tool install git-lines-graph   
# OR
python3 -m pip install git-lines-graph

Usage

Run: git-lines-graph [-b BRANCH] [GIT-DIR]

Call with an optional git project directory. You can also specify a branch to scan; other wise the branch currently checked in is used.

Dependencies

  • GitPython to interact with git.
  • matplotlib for plotting.
  • pandas for data manipulation.

How Does It Work

The code goes over all commits messages and looks for the number of lines added/removed and keeps an updated count. Caveat: the lines reported in git commit messages are only a proxy for the true number of lines of code. It could be way off in projects in which there are data artifacts such as big data files. One solution is to loop over all commits, checkout the commit and do a wc over all files that are considered to be code files. But that's slower and could be dangerous in dirty projects.

Metadata

Release files for git-lines-graph 2.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-lines-graph 2.3.9
File Size Uploaded Provenance
git_lines_graph-2.3.9.tar.gz 132.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for git-lines-graph 2.3.9
File Interpreter ABI Platform
git_lines_graph-2.3.9-py3-none-any.whl Python 3 none any Details

Total release size: 147.6 kB

Release files / git_lines_graph-2.3.9.tar.gz

Download URL git_lines_graph-2.3.9.tar.gz
Size 132.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bb5c54d70e0cbab72f5a2c3aa7c5618b8b703e4096862040cbbace66b3da018b
BLAKE2b-256 checksum
How to use checksums
f41172177b6620430b41444ef518297e8de8518a975c06ace03a447870d2a2a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / git_lines_graph-2.3.9-py3-none-any.whl

Download URL git_lines_graph-2.3.9-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd887a85463d614429cf771a7ed735290fbd4abc3d5b3feea7b1d10e661372a7
BLAKE2b-256 checksum
How to use checksums
3287724a6b895cd782af1352ba6d23e41f2427052c747e9a22e4546d6938b6b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for git-lines-graph 2.3.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page