r/madeinpython • • Aug 23 '26

I built a Python GitHub Action that generates language stats for your profile README

I wanted a cleaner way to show the language mix across my GitHub repos without relying on another hosted stats/badge service, so I built profile-language-metrics.

It’s a small, dependency-free Python GitHub Action that:

  • Scans active repositories

  • Counts estimated non-empty source lines by language

  • Ignores forks, archived repos, dependencies, build output, lockfiles, minified files, binaries, etc.

  • Generates a profile-ready SVG

  • Can update itself on a GitHub Actions schedule

  • Can optionally include private repos while only exposing aggregate totals, not repo names or URLs

The whole thing runs inside GitHub Actions using Python’s standard library + Git. No external dashboard or service required.

I also wrote up how it works, why I went with source-line estimates instead of GitHub’s normal language byte counts, the privacy model, and some of the tradeoffs involved:

https://www.ryanverwey.dev/blog/github-profile-language-metrics-python-action

1 Upvotes

0 comments sorted by