Skip to main content

Programming language usage over time in a git repository is plotted to an SVG file.

Project description

git-repo-language-trends

Programming language usage over time in a git repository is plotted to an SVG file, based on total line count for given file extensions.

Example

Simply pass the file extensions of the languages you want the trend for.

% cd ~/src/your-project
% git-repo-language-trends .cpp .rs
                .cpp    .rs
2021-01-23      0       121
2021-01-22      120     107
2021-01-19      243     66

Then open output.svg.

Installation

Simply do

python3 -m pip install git-repo-language-trends

Performance

This program is pretty fast, because it uses the pygit2 wrapper for the C library libgit2. On a low end computer (with an Intel(R) Celeron(R) J4005 CPU @ 2.00GHz) it counts ~400 000 lines per qsecond.

Project details


Download files

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

Source Distribution

git-repo-language-trends-0.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page