pygount
count source lines of code (SLOC) using pygments
Decision gist · record as of 2026-08-14
Yes. Pygount is a stable, actively maintained tool with low install friction, no known vulnerabilities, and permissive licensing. Install it if you need to measure code volume across multiple languages or integrate SLOC reporting into your build pipeline.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a pure Python wheel.
- Actively maintained with a recent release (128 days ago) and an active repository; supports current Python versions (3.10–3.14).
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute pygount freely in commercial and private projects with minimal restrictions.
last release 2026-04-08 (128 days) · last repo commit 2026-06-17 · 186 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 719,788 downloads/mo, #5,238 on PyPI
Alternatives
Verify before relying
pip install pygount
pygount ~/projects/example
pygount --format=summary ~/projects/exampleWhat it is and what it does
Pygount is a command-line tool that scans directories or remote git repositories to count source lines of code (SLOC) across any programming language supported by pygments. It works similarly to sloccount and cloc but leverages pygments' language detection to analyze a wide range of file types without needing language-specific parsers.
You run it from the shell to get per-file line counts, language summaries with percentages, or export results in cloc-compatible XML format for integration with CI/CD systems like Jenkins. It can analyze local folders, filter by file suffix, and even check out specific git revisions directly from remote URLs without cloning.
Use it for
- Generate SLOC reports for code review or project metrics in CI/CD pipelines.
- Compare code volume across multiple programming languages in a single repository.
- Export metrics in cloc XML format for ingestion by Jenkins or other build tools.
- Analyze remote git repositories directly without downloading the full clone.
- Filter analysis to specific file types (e.g., only .py and .yml files) for focused metrics.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Pygount is a stable, actively maintained tool with low install friction, no known vulnerabilities, and permissive licensing. Install it if you need to measure code volume across multiple languages or integrate SLOC reporting into your build pipeline.
Install
pygount on PyPI
Before you install
Low friction install with a pure Python wheel. Actively maintained with a recent release (128 days ago) and an active repository; supports current Python versions (3.10–3.14).
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute pygount freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pygount
pygount ~/projects/example
pygount --format=summary ~/projects/example
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packageschardetgitpythonpygmentsrich |
| Maintenance | Actively maintained 128 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 719,788 / month, #5,238 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development |
Evidence: pygount-3.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “count lines of code”
- pygountPygount counts source lines of code (SLOC) across multiple…
- lizardLizard analyzes code complexity and detects code clones across many…
- backports.shutil_get_terminal_sizeProvides the get_terminal_size() function for Python versions that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also syllapy · Pygments · lizard · radon · django-querycount · thop · ipython-pygments-lexers · pytest-progress · ansible-pygments · jupyterlab-pygments