fastapi/fastapi SLOC report

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.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
Python53333574292103963968
TOML14003393328
JavaScript1363204
Shell5331959
HTML19900
CSS13300
Markdown29920639353

Top language (Python 98.6%). Generated at .

Report FAQ

How many lines of code does fastapi/fastapi have?

fastapi/fastapi has 35,047 total lines, including 29,612 code lines, 1,073 comment lines, and 4,362 blank lines.

How was the fastapi/fastapi line count measured?

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.

What commit was counted for fastapi/fastapi?

This OctoCounts report was generated from master at commit 49033471594e on 2026-08-26T18:16:00.877640547+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: