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.8

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.8
File Size Uploaded Provenance
git_lines_graph-2.3.8.tar.gz 171.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 186.8 kB

Release files / git_lines_graph-2.3.8.tar.gz

Download URL git_lines_graph-2.3.8.tar.gz
Size 171.3 kB
Tags Source
SHA-256 checksum
How to use checksums
217d9d297c9b42d83997a1afd8e33c89bf3fe4d48cb6776f8770e8de6d8050ff
BLAKE2b-256 checksum
How to use checksums
19bc7241183b6c87460e17ed439b1352e144654ddb879836e3cab127e2aff430
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.8-py3-none-any.whl

Download URL git_lines_graph-2.3.8-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39666934f0083cd3ca0b54a850e42779c90db49eefe95a91be6b7d590d9bda33
BLAKE2b-256 checksum
How to use checksums
b55f0b44c0b8d372f7aceaa308534e04ddb100f5906f2d1a716212be1dbc0627
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.8

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