Skip to main content

GitHub Commit Line Stats

Count how many lines of code you commit on GitHub! (Count by file extension)

python -m ghcls --token <YOUR GITHUB TOKEN>
usage: __main__.py [-h] -t TOKEN [-u USER] [-c CACHE] [-o OUTPUT] [-l LANGUAGE]

GitHub Commit Line Stats

options:
  -h, --help            show this help message and exit
  -t, --token TOKEN     GitHub Personal Access Token
  -u, --user USER       GitHub Username (Optional)
  -c, --cache CACHE     Cache directory for commits
  -o, --output OUTPUT   Output file for commit stats
  -l, --language LANGUAGE
                        Language detection function (default: importlib.import_module('ghcls').get_language_by_filename)

You can customize your language detector by changing get_language_by_filename, e.g.:

pip install ghcls[linguist]
python -m ghcls --token <YOUR GITHUB TOKEN> -l importlib.import_module('ghcls.extensions.linguist').get_language_by_filename
from ghcls import get_additions_of_user, get_language_by_filename
gh = Github(your_gh_token)
user = gh.get_user(your_username)
totals = get_additions_of_user(user, token, cache, get_language_by_filename)
# You can customize your language detector by changing get_language_by_filename
pathlib.Path(output).write_text(json.dumps(totals, indent=2))

Metadata

Release files for github-commit-line-stats 1.2.2

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

Source distribution (sdist)

Source distribution for github-commit-line-stats 1.2.2
File Size Uploaded Provenance
github_commit_line_stats-1.2.2.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for github-commit-line-stats 1.2.2
File Interpreter ABI Platform
github_commit_line_stats-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / github_commit_line_stats-1.2.2.tar.gz

Download URL github_commit_line_stats-1.2.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
32d0ded28b1c408ef48986ba8a3f843879e1e62b88b06c0a5ed78ba6be74bb77
BLAKE2b-256 checksum
How to use checksums
955ca6329fc2a3d7b967a7da43ba37b5ec448a08f38aaebcc1b43113ae478c49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / github_commit_line_stats-1.2.2-py3-none-any.whl

Download URL github_commit_line_stats-1.2.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4c1fb208a501026324ef323822b1f4f586f1548e5aa2e0b5f577abcc9e6f9ba
BLAKE2b-256 checksum
How to use checksums
e1cde7c0e839a6dc2d6d1e4793d585527197baab47dddd99b0bb5a6ed8924cb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for github-commit-line-stats 1.2.2

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.

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