# pydantic/pydantic-ai SLOC report

> pydantic/pydantic-ai: 331,724 code lines at commit 2c942f77d915, counted with tokei-15.0.0 on 2026-11-07. Saved result 794f352d39e843d227c6cf78d105ba8c24b70c93efaebadc40646a9077daca78.

Source: [pydantic/pydantic-ai on GitHub](https://github.com/pydantic/pydantic-ai) · counted commit [2c942f77d915](https://github.com/pydantic/pydantic-ai/tree/2c942f77d9159521d7c880d0a676532e4d1655e1)

pydantic/pydantic-ai has 331,724 source lines of code out of 422,923 total lines across 1,350 files, counted with tokei from the main ref at commit 2c942f77d915 on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving pydantic/pydantic-ai to commit 2c942f77d915, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

pydantic/pydantic-ai: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 78.4% of all lines, comments represent 9.2%, and the repository averages 246 code lines per file. Python accounts for 91.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,138 | 366,167 | 304,929 | 17,053 | 44,185 |
| JSON | 6 | 11,219 | 11,219 | 0 | 0 |
| TSX | 36 | 7,794 | 7,040 | 422 | 332 |
| CSS | 2 | 4,517 | 3,770 | 59 | 688 |
| TypeScript | 17 | 2,371 | 1,842 | 331 | 198 |
| Shell | 5 | 1,482 | 1,179 | 196 | 107 |
| TOML | 8 | 1,494 | 1,118 | 286 | 90 |
| YAML | 2 | 219 | 217 | 2 | 0 |
| HTML | 5 | 200 | 191 | 2 | 7 |
| JavaScript | 1 | 112 | 111 | 0 | 1 |
| Makefile | 1 | 139 | 108 | 7 | 24 |
| Markdown | 129 | 27,209 | 0 | 20,717 | 6,492 |

Top language: Python 91.9%. Generated on November 7, 2026. Canonical report: https://octocounts.com/github/pydantic/pydantic-ai/commit/2c942f77d9159521d7c880d0a676532e4d1655e1?reportId=794f352d39e843d227c6cf78d105ba8c24b70c93efaebadc40646a9077daca78&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/2c942f77d9159521d7c880d0a676532e4d1655e1?reportId=794f352d39e843d227c6cf78d105ba8c24b70c93efaebadc40646a9077daca78&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 331,724 lines of code, plus 39,075 comment lines and 52,124 blank lines, for 422,923 total lines at commit 2c942f77d915 on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 2c942f77d915, 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 2c942f77d915 on November 7, 2026.

## Similar repository reports

- [langchain-ai/open-swe](https://octocounts.com/github/langchain-ai/open-swe) — Python, 370,293 code lines
- [jax-ml/jax](https://octocounts.com/github/jax-ml/jax) — Python, 375,938 code lines
- [homeassistant-ai/ha-mcp](https://octocounts.com/github/homeassistant-ai/ha-mcp) — Python, 357,547 code lines
- [HKUDS/Vibe-Trading](https://octocounts.com/github/HKUDS/Vibe-Trading) — Python, 356,622 code lines
- [melodygaoyifan/crypto_trading](https://octocounts.com/github/melodygaoyifan/crypto_trading) — Python, 379,567 code lines
- [abrignoni/iLEAPP](https://octocounts.com/github/abrignoni/iLEAPP) — Python, 393,115 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
