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.
As of 2026-10-22 (commit 2a25816880b6), pymupdf/PyMuPDF contains 82,930 total lines: 66,880 code, 6,782 comments, 9,268 blank, across 51 files in 7 languages (top: Python 60.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
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.
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 | 48089 | 40560 | 2387 | 5142 |
| SWIG | 20 | 30979 | 26233 | 2019 | 2727 |
| 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 | 2998 | 0 | 1900 | 1098 |
Top language (Python 60.6%). Generated at .
pymupdf/PyMuPDF has 82,930 total lines, including 66,880 code lines, 6,782 comment lines, and 9,268 blank lines.
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.
This OctoCounts report was generated from main at commit 2a25816880b6 on 2026-10-22T06:05:13.823317693+00:00.
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 — 66,880 code lines across 7 languages, counted by tokei.