As of 2026-08-26 (commit 49033471594e), fastapi/fastapi contains 35,047 total lines: 29,612 code, 1,073 comments, 4,362 blank, across 544 files in 7 languages (top: Python 98.6%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving fastapi/fastapi to commit 49033471594e, 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 84.5% of all lines, comments represent 3.1%, and the repository averages 54 code lines per file. Python accounts for 98.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 533 | 33574 | 29210 | 396 | 3968 |
| TOML | 1 | 400 | 339 | 33 | 28 |
| JavaScript | 1 | 36 | 32 | 0 | 4 |
| Shell | 5 | 33 | 19 | 5 | 9 |
| HTML | 1 | 9 | 9 | 0 | 0 |
| CSS | 1 | 3 | 3 | 0 | 0 |
| Markdown | 2 | 992 | 0 | 639 | 353 |
Top language (Python 98.6%). Generated at .
fastapi/fastapi has 35,047 total lines, including 29,612 code lines, 1,073 comment lines, and 4,362 blank lines.
OctoCounts resolved the public GitHub repository to commit 49033471594e, 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 49033471594e on 2026-08-26T18:16:00.877640547+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: