# pybind/pybind11 SLOC report

> As of 2026-07-15 (commit 28b98f2d3929), pybind/pybind11 contains 30,907 total lines: 22,500 code, 4,676 comments, 3,731 blank, across 84 files in 10 languages (top: C Header 86.2%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving pybind/pybind11 to commit 28b98f2d3929, 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.1%, and the repository averages 268 code lines per file. C Header accounts for 86.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 54 | 26,660 | 19,395 | 4,182 | 3,083 |
| CMake | 10 | 2,223 | 1,625 | 329 | 269 |
| Python | 10 | 1,068 | 814 | 63 | 191 |
| Autoconf | 3 | 270 | 190 | 13 | 67 |
| TOML | 1 | 215 | 182 | 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 86.2%). Generated at 2026-07-15T10:22:17.687223846+00:00. Canonical report: https://octocounts.com/github/pybind/pybind11

## Report FAQ

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

pybind/pybind11 has 30,907 total lines, including 22,500 code lines, 4,676 comment lines, and 3,731 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 28b98f2d3929, 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 master at commit 28b98f2d3929 on 2026-07-15T10:22:17.687223846+00:00.

## Similar repository reports

- [gabime/spdlog](https://octocounts.com/github/gabime/spdlog) — C Header, 22,618 code lines
- [charles-lunarg/vk-bootstrap](https://octocounts.com/github/charles-lunarg/vk-bootstrap) — C Header, 23,708 code lines
- [Tencent/rapidjson](https://octocounts.com/github/Tencent/rapidjson) — C Header, 21,118 code lines
- [Kahviz/BoronGameEngine](https://octocounts.com/github/Kahviz/BoronGameEngine) — C Header, 26,195 code lines
- [google/googletest](https://octocounts.com/github/google/googletest) — C Header, 27,072 code lines
- [timoti111/vkEasy](https://octocounts.com/github/timoti111/vkEasy) — C Header, 27,694 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
