# python-cmd2/cmd2 SLOC report

> python-cmd2/cmd2: 17,279 code lines at commit 07495f88c19c, counted with tokei-14.0.0 on 2026-10-21. Saved result 80bd991d1ec5e098e9febd2686b3e154b8054d3c0a000b3860fefee9691cf54a.

python-cmd2/cmd2 has 17,279 source lines of code out of 25,376 total lines across 86 files, counted from the main ref at commit 07495f88c19c by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving python-cmd2/cmd2 to commit 07495f88c19c, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 68.1% of all lines, comments represent 17.7%, and the repository averages 201 code lines per file. Python accounts for 96.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 67 | 21,861 | 16,645 | 2,055 | 3,161 |
| TOML | 3 | 338 | 266 | 47 | 25 |
| YAML | 2 | 243 | 214 | 17 | 12 |
| Makefile | 1 | 134 | 105 | 4 | 25 |
| Shell | 2 | 70 | 35 | 23 | 12 |
| Autoconf | 1 | 8 | 8 | 0 | 0 |
| JSON | 1 | 6 | 6 | 0 | 0 |
| Markdown | 6 | 2,710 | 0 | 2,347 | 363 |
| Plain Text | 3 | 6 | 0 | 6 | 0 |

Top language (Python 96.3%). Generated at 2026-10-21T03:21:56.621142510Z. Canonical report: https://octocounts.com/github/python-cmd2/cmd2/commit/07495f88c19cd8c1250e9c1f3571ad93d1ce12bf?reportId=80bd991d1ec5e098e9febd2686b3e154b8054d3c0a000b3860fefee9691cf54a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/python-cmd2/cmd2/commit/07495f88c19cd8c1250e9c1f3571ad93d1ce12bf?reportId=80bd991d1ec5e098e9febd2686b3e154b8054d3c0a000b3860fefee9691cf54a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does python-cmd2/cmd2 have?

python-cmd2/cmd2 has 25,376 total lines, including 17,279 code lines, 4,499 comment lines, and 3,598 blank lines.

### How was the python-cmd2/cmd2 line count measured?

OctoCounts resolved the public GitHub repository to commit 07495f88c19c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for python-cmd2/cmd2?

This OctoCounts report was generated from main at commit 07495f88c19c on 2026-10-21T03:21:56.621142510Z.

## Similar repository reports

- [zhinkgit/embeddedskills](https://octocounts.com/github/zhinkgit/embeddedskills) — Python, 17,162 code lines
- [gz83/thorium](https://octocounts.com/github/gz83/thorium) — Python, 17,476 code lines
- [Gritiii/DDRNet_real](https://octocounts.com/github/Gritiii/DDRNet_real) — Python, 17,541 code lines
- [PadishahIII/latex-ocr](https://octocounts.com/github/PadishahIII/latex-ocr) — Python, 16,905 code lines
- [ignis-sh/ignis](https://octocounts.com/github/ignis-sh/ignis) — Python, 17,662 code lines
- [firelex/jeff](https://octocounts.com/github/firelex/jeff) — Python, 17,668 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
