# pypa/pip SLOC report

> As of 2026-09-02 (commit a3dfd76dd76b), pypa/pip contains 145,675 total lines: 120,992 code, 7,953 comments, 16,730 blank, across 454 files in 7 languages (top: Python 96.0%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving pypa/pip to commit a3dfd76dd76b, 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 83.1% of all lines, comments represent 5.5%, and the repository averages 267 code lines per file. Python accounts for 96.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 418 | 138,245 | 116,141 | 6,555 | 15,549 |
| ReStructuredText | 20 | 5,204 | 4,195 | 0 | 1,009 |
| TOML | 3 | 449 | 333 | 61 | 55 |
| JSON | 1 | 231 | 231 | 0 | 0 |
| JavaScript | 1 | 110 | 92 | 12 | 6 |
| Markdown | 4 | 182 | 0 | 128 | 54 |
| Plain Text | 7 | 1,254 | 0 | 1,197 | 57 |

Top language (Python 96.0%). Generated at 2026-09-02T15:36:58.937659834+00:00. Canonical report: https://octocounts.com/github/pypa/pip

## Report FAQ

### How many lines of code does pypa/pip have?

pypa/pip has 145,675 total lines, including 120,992 code lines, 7,953 comment lines, and 16,730 blank lines.

### How was the pypa/pip line count measured?

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

### What commit was counted for pypa/pip?

This OctoCounts report was generated from main at commit a3dfd76dd76b on 2026-09-02T15:36:58.937659834+00:00.

## Similar repository reports

- [vitali87/code-graph-rag](https://octocounts.com/github/vitali87/code-graph-rag) — Python, 122,847 code lines
- [shalfun/DrivingDiffusion](https://octocounts.com/github/shalfun/DrivingDiffusion) — Python, 125,226 code lines
- [Dao-AILab/flash-attention](https://octocounts.com/github/Dao-AILab/flash-attention) — Python, 126,012 code lines
- [tradermonty/claude-trading-skills](https://octocounts.com/github/tradermonty/claude-trading-skills) — Python, 126,123 code lines
- [ManimCommunity/manim](https://octocounts.com/github/ManimCommunity/manim) — Python, 115,517 code lines
- [Tracer-Cloud/opensre](https://octocounts.com/github/Tracer-Cloud/opensre) — Python, 115,417 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
