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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_lines_graph-2.3.6.tar.gz (144.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_lines_graph-2.3.6-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file git_lines_graph-2.3.6.tar.gz.

File metadata

  • Download URL: git_lines_graph-2.3.6.tar.gz
  • Upload date:
  • Size: 144.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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}

File hashes

Hashes for git_lines_graph-2.3.6.tar.gz
Algorithm Hash digest
SHA256 30c80c8757ff0da6e16419f11313ee2a064f90a919d74cf6eba9c2c94a259189
MD5 e2a811e53bb44db48e54b10423c469ff
BLAKE2b-256 1e41e123738f6f8c16fc3b70c0595f3694841bbea2f614018c00aec29b7a221a

See more details on using hashes here.

File details

Details for the file git_lines_graph-2.3.6-py3-none-any.whl.

File metadata

  • Download URL: git_lines_graph-2.3.6-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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}

File hashes

Hashes for git_lines_graph-2.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ba05db74e47669d16f8edb2fe5eec56e15013b45d407216e1e85ea6c6426effd
MD5 02d3c09c8f51ca5834be20be8c6062c2
BLAKE2b-256 a13c2d3afc0fb2eff846eb7f47711e098bbb39c0d9956aacced966c4bdf65049

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.7

2 files

This release

2.3.6 This release

2 files

2.3.3

2 files

2.3.2

2 files

2.3.1

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

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