# pymupdf/PyMuPDF SLOC report

> pymupdf/PyMuPDF: 66,880 code lines at commit 2a25816880b6, counted with tokei-14.0.0 on 2026-10-22. Saved result 0d75e270cb4d116f55cf284ec59a5939844c8e42f4e50b4db104885d6e4e6aae.

pymupdf/PyMuPDF has 66,880 source lines of code out of 82,930 total lines across 51 files, counted from the main ref at commit 2a25816880b6 by the OctoCounts tokei engine on 2026-10-22. 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 pymupdf/PyMuPDF to commit 2a25816880b6, 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 medium-sized codebase by counted code lines. Code represents 80.6% of all lines, comments represent 8.2%, and the repository averages 1,311 code lines per file. Python accounts for 60.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 24 | 48,089 | 40,560 | 2,387 | 5,142 |
| SWIG | 20 | 30,979 | 26,233 | 2,019 | 2,727 |
| C Header | 1 | 222 | 75 | 105 | 42 |
| TOML | 2 | 8 | 8 | 0 | 0 |
| INI | 1 | 4 | 4 | 0 | 0 |
| Markdown | 2 | 630 | 0 | 371 | 259 |
| Plain Text | 1 | 2,998 | 0 | 1,900 | 1,098 |

Top language (Python 60.6%). Generated at 2026-10-22T06:05:13.823317693Z. Canonical report: https://octocounts.com/github/pymupdf/PyMuPDF/commit/2a25816880b6375d93644c5dba38a0619d7e6006?reportId=0d75e270cb4d116f55cf284ec59a5939844c8e42f4e50b4db104885d6e4e6aae&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/pymupdf/PyMuPDF/commit/2a25816880b6375d93644c5dba38a0619d7e6006?reportId=0d75e270cb4d116f55cf284ec59a5939844c8e42f4e50b4db104885d6e4e6aae&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 pymupdf/PyMuPDF have?

pymupdf/PyMuPDF has 82,930 total lines, including 66,880 code lines, 6,782 comment lines, and 9,268 blank lines.

### How was the pymupdf/PyMuPDF line count measured?

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

### What commit was counted for pymupdf/PyMuPDF?

This OctoCounts report was generated from main at commit 2a25816880b6 on 2026-10-22T06:05:13.823317693Z.

## Similar repository reports

- [opendatalab/mineru](https://octocounts.com/github/opendatalab/mineru) — Python, 66,924 code lines
- [kaloscope/kaloscope](https://octocounts.com/github/kaloscope/kaloscope) — Python, 66,587 code lines
- [myfanhua/turb-gpt-free-register](https://octocounts.com/github/myfanhua/turb-gpt-free-register) — Python, 67,607 code lines
- [asgeirtj/system_prompts_leaks](https://octocounts.com/github/asgeirtj/system_prompts_leaks) — Python, 67,705 code lines
- [tirth8205/code-review-graph](https://octocounts.com/github/tirth8205/code-review-graph) — Python, 67,776 code lines
- [open-energy-transition/pypsa-eur](https://octocounts.com/github/open-energy-transition/pypsa-eur) — Python, 67,932 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)
