pymupdf/PyMuPDF

pymupdf/PyMuPDF has 66,581 source lines of code out of 82,467 total lines across 49 files, counted from the main ref at commit 9dc8ba4af28f by the OctoCounts tokei engine on 2026-10-05. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

As of 2026-10-05 (commit 9dc8ba4af28f), pymupdf/PyMuPDF contains 82,467 total lines: 66,581 code, 6,736 comments, 9,150 blank, across 49 files in 7 languages (top: Python 60.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-05 (commit 9dc8ba4af28f), pymupdf/PyMuPDF contains 82,467 total lines: 66,581 code, 6,736 comments, 9,150 blank, across 49 files in 7 languages (top: Python 60.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving pymupdf/PyMuPDF to commit 9dc8ba4af28f, 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.7% of all lines, comments represent 8.2%, and the repository averages 1,359 code lines per file. Python accounts for 60.5% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Python23477994026924425088
SWIG20309652622520152725
C Header12227510542
TOML28800
INI14400
Markdown14800283197
Plain Text12989018911098

Top language (Python 60.5%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does pymupdf/PyMuPDF have?

pymupdf/PyMuPDF has 82,467 total lines, including 66,581 code lines, 6,736 comment lines, and 9,150 blank lines.

How was the pymupdf/PyMuPDF line count measured?

OctoCounts resolved the public GitHub repository to commit 9dc8ba4af28f, 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 9dc8ba4af28f on 2026-10-05T17:23:10.369152708+00:00.

Similar repository reports

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,581 code lines across 7 languages, counted by tokei.