# pydantic/pydantic-ai SLOC report

> pydantic/pydantic-ai: 266,608 code lines at commit cdd22bc5bb0f, counted with tokei-14.0.0 on 2026-10-21. Saved result f99bd2eefeb03a7b651b62bd63702898e5398e0e28fdf70bf9c6bc58f41c56cd.

pydantic/pydantic-ai has 266,608 source lines of code out of 341,455 total lines across 1,182 files, counted from the main ref at commit cdd22bc5bb0f by the OctoCounts tokei engine on 2026-10-21. 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 pydantic/pydantic-ai to commit cdd22bc5bb0f, 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 large codebase by counted code lines. Code represents 78.1% of all lines, comments represent 9.4%, and the repository averages 226 code lines per file. Python accounts for 94.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 998 | 301,012 | 250,480 | 14,226 | 36,306 |
| TSX | 31 | 5,832 | 5,312 | 253 | 267 |
| JSON | 5 | 3,418 | 3,418 | 0 | 0 |
| CSS | 2 | 3,928 | 3,287 | 46 | 595 |
| TypeScript | 15 | 1,813 | 1,453 | 217 | 143 |
| TOML | 8 | 1,366 | 1,035 | 243 | 88 |
| Shell | 5 | 1,283 | 1,009 | 171 | 103 |
| YAML | 2 | 219 | 217 | 2 | 0 |
| HTML | 5 | 200 | 191 | 2 | 7 |
| Makefile | 1 | 133 | 105 | 5 | 23 |
| JavaScript | 1 | 101 | 101 | 0 | 0 |
| Markdown | 109 | 22,150 | 0 | 16,987 | 5,163 |

Top language (Python 94.0%). Generated at 2026-10-21T04:35:13.278338635Z. Canonical report: https://octocounts.com/github/pydantic/pydantic-ai/commit/cdd22bc5bb0f870a9366e1d35cf9338a774671a9?reportId=f99bd2eefeb03a7b651b62bd63702898e5398e0e28fdf70bf9c6bc58f41c56cd&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/pydantic/pydantic-ai/commit/cdd22bc5bb0f870a9366e1d35cf9338a774671a9?reportId=f99bd2eefeb03a7b651b62bd63702898e5398e0e28fdf70bf9c6bc58f41c56cd&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does pydantic/pydantic-ai have?

pydantic/pydantic-ai has 341,455 total lines, including 266,608 code lines, 32,152 comment lines, and 42,695 blank lines.

### How was the pydantic/pydantic-ai line count measured?

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

### What commit was counted for pydantic/pydantic-ai?

This OctoCounts report was generated from main at commit cdd22bc5bb0f on 2026-10-21T04:35:13.278338635Z.

## Similar repository reports

- [mehakkgupta1107/PlanKaro](https://octocounts.com/github/mehakkgupta1107/PlanKaro) — Python, 265,986 code lines
- [langchain-ai/deepagents](https://octocounts.com/github/langchain-ai/deepagents) — Python, 265,612 code lines
- [ZhuLinsen/daily_stock_analysis](https://octocounts.com/github/ZhuLinsen/daily_stock_analysis) — Python, 264,961 code lines
- [derv82/wifit3](https://octocounts.com/github/derv82/wifit3) — Python, 268,404 code lines
- [keras-team/keras](https://octocounts.com/github/keras-team/keras) — Python, 271,805 code lines
- [pipecat-ai/pipecat](https://octocounts.com/github/pipecat-ai/pipecat) — Python, 259,648 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
