# pydantic/pydantic-ai SLOC report

> pydantic/pydantic-ai: 345,821 code lines at commit c7586d79b647, counted with tokei-15.0.0 on 2026-11-16. Saved result 27a9c2fc173692debbbfc3248cbfdf176ba93eec70df2535fd45e305e6a2fc30.

pydantic/pydantic-ai has 345,821 source lines of code out of 441,976 total lines across 1,411 files, counted with tokei from the main ref at commit c7586d79b647 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving pydantic/pydantic-ai to commit c7586d79b647, 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.2% of all lines, comments represent 9.4%, and the repository averages 245 code lines per file. Python accounts for 92.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,195 | 382,458 | 318,461 | 17,554 | 46,443 |
| JSON | 6 | 11,537 | 11,537 | 0 | 0 |
| TSX | 36 | 7,864 | 7,104 | 427 | 333 |
| CSS | 2 | 4,533 | 3,781 | 62 | 690 |
| TypeScript | 17 | 2,389 | 1,856 | 334 | 199 |
| Shell | 5 | 1,626 | 1,316 | 203 | 107 |
| TOML | 8 | 1,518 | 1,129 | 299 | 90 |
| YAML | 2 | 219 | 217 | 2 | 0 |
| HTML | 5 | 200 | 191 | 2 | 7 |
| Makefile | 1 | 154 | 117 | 10 | 27 |
| JavaScript | 1 | 113 | 112 | 0 | 1 |
| Markdown | 133 | 29,365 | 0 | 22,652 | 6,713 |

Top language: Python 92.1%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/pydantic/pydantic-ai/commit/c7586d79b64706f4605f15a29534118813df12a4?reportId=27a9c2fc173692debbbfc3248cbfdf176ba93eec70df2535fd45e305e6a2fc30&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/c7586d79b64706f4605f15a29534118813df12a4?reportId=27a9c2fc173692debbbfc3248cbfdf176ba93eec70df2535fd45e305e6a2fc30&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 345,821 lines of code, plus 41,545 comment lines and 54,610 blank lines, for 441,976 total lines at commit c7586d79b647 on November 16, 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 c7586d79b647, 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 c7586d79b647 on November 16, 2026.

## Similar repository reports

- [homeassistant-ai/ha-mcp](https://octocounts.com/github/homeassistant-ai/ha-mcp) — Python, 344,502 code lines
- [IBM/mcp-context-forge](https://octocounts.com/github/IBM/mcp-context-forge) — Python, 341,271 code lines
- [HKUDS/Vibe-Trading](https://octocounts.com/github/HKUDS/Vibe-Trading) — Python, 352,163 code lines
- [angr/angr](https://octocounts.com/github/angr/angr) — Python, 338,565 code lines
- [openai/openai-python](https://octocounts.com/github/openai/openai-python) — Python, 338,219 code lines
- [menglimi/astrbot_plugin_private_companion_v2](https://octocounts.com/github/menglimi/astrbot_plugin_private_companion_v2) — Python, 331,869 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)
- [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)
