pybind/pybind11 has 23,005 source lines of code out of 32,369 total lines across 104 files, counted from the master ref at commit fdec8c350aa0 by the OctoCounts tokei engine on 2026-10-20. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-20 (commit fdec8c350aa0), pybind/pybind11 contains 32,369 total lines: 23,005 code, 5,223 comments, 4,141 blank, across 104 files in 11 languages (top: C Header 84.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving pybind/pybind11 to commit fdec8c350aa0, 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.
This is a medium-sized codebase by counted code lines. Code represents 71.1% of all lines, comments represent 16.1%, and the repository averages 221 code lines per file. C Header accounts for 84.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C Header | 65 | 27571 | 19493 | 4660 | 3418 |
| CMake | 10 | 2335 | 1704 | 351 | 280 |
| Python | 11 | 1381 | 1069 | 79 | 233 |
| Autoconf | 3 | 294 | 208 | 14 | 72 |
| TOML | 1 | 221 | 188 | 4 | 29 |
| ReStructuredText | 1 | 215 | 175 | 0 | 40 |
| JSON | 1 | 93 | 93 | 0 | 0 |
| C++ | 8 | 96 | 49 | 30 | 17 |
| Shell | 1 | 44 | 26 | 13 | 5 |
| Markdown | 2 | 104 | 0 | 63 | 41 |
| Plain Text | 1 | 15 | 0 | 9 | 6 |
Top language (C Header 84.7%). Generated at .
pybind/pybind11 has 32,369 total lines, including 23,005 code lines, 5,223 comment lines, and 4,141 blank lines.
OctoCounts resolved the public GitHub repository to commit fdec8c350aa0, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit fdec8c350aa0 on 2026-10-20T00:39:25.154727208+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for pybind/pybind11 on this page — 23,005 code lines across 11 languages, counted by tokei.