pymupdf/PyMuPDF has 68,094 source lines of code out of 84,521 total lines across 52 files, counted with tokei from the main ref at commit 772b775fe4c3 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
pymupdf/PyMuPDF: 68,094 code lines at commit 772b775fe4c3, counted with tokei-15.0.0 on 2026-11-16. Saved result 2df6bfe2ca234b6dc68ffde8b8e404f0ca4893dda62ff56a83c4fd8c87d5b0ff.
OctoCounts produced this report by resolving pymupdf/PyMuPDF to commit 772b775fe4c3, 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.
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,310 code lines per file. Python accounts for 61.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 25 | 49648 | 41772 | 2552 | 5324 |
| SWIG | 20 | 30982 | 26235 | 2019 | 2728 |
| C Header | 1 | 222 | 75 | 105 | 42 |
| TOML | 2 | 8 | 8 | 0 | 0 |
| INI | 1 | 4 | 4 | 0 | 0 |
| Markdown | 2 | 641 | 0 | 376 | 265 |
| Plain Text | 1 | 3016 | 0 | 1912 | 1104 |
Top language: Python 61.3%. Generated on .
pymupdf/PyMuPDF: 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.
pymupdf/PyMuPDF has 68,094 lines of code, plus 6,964 comment lines and 9,463 blank lines, for 84,521 total lines at commit 772b775fe4c3 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 772b775fe4c3, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 772b775fe4c3 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for pymupdf/PyMuPDF on this page — 68,094 code lines across 7 languages, counted by tokei.