# pybind/pybind11 SLOC report

> As of 2026-09-16 (commit 63121f7b01c8), pybind/pybind11 contains 31,137 total lines: 22,656 code, 4,735 comments, 3,746 blank, across 84 files in 10 languages (top: C Header 85.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

pybind/pybind11 has 22,656 source lines of code out of 31,137 total lines across 84 files, counted from the 63121f7b01c88717971233a3937e8869c2947c57 ref at commit 63121f7b01c8 by the OctoCounts tokei engine on 2026-09-16. 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 pybind/pybind11 to commit 63121f7b01c8, 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 72.8% of all lines, comments represent 15.2%, and the repository averages 270 code lines per file. C Header accounts for 85.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 54 | 26,717 | 19,417 | 4,220 | 3,080 |
| CMake | 10 | 2,251 | 1,642 | 340 | 269 |
| Python | 10 | 1,207 | 925 | 73 | 209 |
| Autoconf | 3 | 270 | 190 | 13 | 67 |
| TOML | 1 | 221 | 188 | 4 | 29 |
| ReStructuredText | 1 | 215 | 175 | 0 | 40 |
| JSON | 1 | 93 | 93 | 0 | 0 |
| Shell | 1 | 44 | 26 | 13 | 5 |
| Markdown | 2 | 104 | 0 | 63 | 41 |
| Plain Text | 1 | 15 | 0 | 9 | 6 |

Top language (C Header 85.7%). Generated at 2026-09-16T17:59:59.995132578+00:00. Canonical report: https://octocounts.com/github/pybind/pybind11

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/pybind/pybind11/commit/63121f7b01c88717971233a3937e8869c2947c57?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does pybind/pybind11 have?

pybind/pybind11 has 31,137 total lines, including 22,656 code lines, 4,735 comment lines, and 3,746 blank lines.

### How was the pybind/pybind11 line count measured?

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

### What commit was counted for pybind/pybind11?

This OctoCounts report was generated from 63121f7b01c88717971233a3937e8869c2947c57 at commit 63121f7b01c8 on 2026-09-16T17:59:59.995132578+00:00.

## Similar repository reports

- [gabime/spdlog](https://octocounts.com/github/gabime/spdlog) — C Header, 22,659 code lines
- [Tencent/rapidjson](https://octocounts.com/github/Tencent/rapidjson) — C Header, 21,121 code lines
- [Null3rror/Xbox-Remote-Controller-Android-App](https://octocounts.com/github/Null3rror/Xbox-Remote-Controller-Android-App) — C Header, 21,061 code lines
- [charles-lunarg/vk-bootstrap](https://octocounts.com/github/charles-lunarg/vk-bootstrap) — C Header, 24,612 code lines
- [davmac314/dinit](https://octocounts.com/github/davmac314/dinit) — C Header, 24,994 code lines
- [Kahviz/BoronGameEngine](https://octocounts.com/github/Kahviz/BoronGameEngine) — C Header, 26,195 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)
- [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)
