# astral-sh/uv SLOC report

> astral-sh/uv: 399,652 code lines at commit cf9bace0e30e, counted with tokei-15.0.0 on 2026-11-16. Saved result 67b4af9dd1668d1f9ea5917fa2d711ea9aadf30de339f29e2f5904a84935eebb.

astral-sh/uv has 399,652 source lines of code out of 461,416 total lines across 1,065 files, counted with tokei from the main ref at commit cf9bace0e30e on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving astral-sh/uv to commit cf9bace0e30e, 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

astral-sh/uv: 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 86.6% of all lines, comments represent 5.9%, and the repository averages 375 code lines per file. Rust accounts for 63.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 661 | 291,121 | 252,852 | 11,725 | 26,544 |
| JSON | 17 | 119,832 | 119,832 | 0 | 0 |
| YAML | 56 | 13,697 | 11,803 | 505 | 1,389 |
| Python | 50 | 10,660 | 8,343 | 845 | 1,472 |
| TOML | 112 | 6,094 | 5,301 | 180 | 613 |
| Shell | 24 | 985 | 621 | 196 | 168 |
| SVG | 3 | 318 | 318 | 0 | 0 |
| PowerShell | 3 | 201 | 137 | 44 | 20 |
| Dockerfile | 3 | 186 | 129 | 24 | 33 |
| Batch | 4 | 147 | 123 | 8 | 16 |
| Fish | 1 | 127 | 73 | 34 | 20 |
| Nushell | 1 | 104 | 65 | 28 | 11 |
| C Shell | 1 | 76 | 35 | 27 | 14 |
| Jupyter Notebooks | 1 | 24 | 20 | 1 | 3 |
| Markdown | 114 | 17,748 | 0 | 13,382 | 4,366 |
| Plain Text | 14 | 96 | 0 | 77 | 19 |

Top language: Rust 63.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/astral-sh/uv/commit/cf9bace0e30e448544c029fb65bff068c16a42d2?reportId=67b4af9dd1668d1f9ea5917fa2d711ea9aadf30de339f29e2f5904a84935eebb&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/astral-sh/uv/commit/cf9bace0e30e448544c029fb65bff068c16a42d2?reportId=67b4af9dd1668d1f9ea5917fa2d711ea9aadf30de339f29e2f5904a84935eebb&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 astral-sh/uv have?

astral-sh/uv has 399,652 lines of code, plus 27,076 comment lines and 34,688 blank lines, for 461,416 total lines at commit cf9bace0e30e on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the astral-sh/uv line count measured?

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

### What commit was counted for astral-sh/uv?

This OctoCounts report was generated from main at commit cf9bace0e30e on November 16, 2026.

## Similar repository reports

- [MrScripty/Pumas-Library](https://octocounts.com/github/MrScripty/Pumas-Library) — Rust, 399,333 code lines
- [poco-ai/Agentero](https://octocounts.com/github/poco-ai/Agentero) — Rust, 400,182 code lines
- [matter-labs/zksync-era](https://octocounts.com/github/matter-labs/zksync-era) — Rust, 400,308 code lines
- [vercel-labs/agent-desktop](https://octocounts.com/github/vercel-labs/agent-desktop) — Rust, 400,817 code lines
- [andrewyng/openworker](https://octocounts.com/github/andrewyng/openworker) — Rust, 401,464 code lines
- [longbridge/gpui-kit](https://octocounts.com/github/longbridge/gpui-kit) — Rust, 402,888 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)
- [uv vs Poetry](https://octocounts.com/compare/uv-vs-poetry)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [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)
