pkg.soopen package index

brew / rank 1739

Install pymupdf with Homebrew, apt

Python bindings for the PDF toolkit and renderer MuPDF. Version 2.0 via Homebrew; verified 2026-10-30. Also installable with debian: sudo apt install python3-fitz.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install pymupdf

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install python3-fitz

Debian stable package indexes · python3-fitz · source: deb.debian.org

overview

Package summary

Python bindings for the PDF toolkit and renderer MuPDF

Commands and aliases

  • pymupdf

history

Project history and usage

PyMuPDF is a high-performance Python binding to MuPDF for reading, rendering, extracting, converting, and modifying documents.

Project history

PyMuPDF developed as Python bindings for the MuPDF engine and tracked MuPDF's expanding support for PDF, XPS, EPUB, CBZ, images, and related formats.

Early releases used `fitz` as the Python import name, reflecting MuPDF's rendering-engine history. The project later adopted `pymupdf` as the preferred import while retaining `fitz` as a compatibility fallback.

Adoption history

PyMuPDF is published as a Python package and packaged by Homebrew, Debian, and Ubuntu according to the supplied facts. Its availability as prebuilt Python wheels and its broad document-format support have made it a common choice for programmatic PDF extraction and rendering.

How it is used

Import `pymupdf`, open a document with `pymupdf.open(path)`, and iterate its pages to extract text, render pixmaps, inspect images, or manipulate supported PDF structures.

Use PyMuPDF when document work must be embedded in Python applications. Many non-PDF formats can be read and converted, while modification operations primarily target PDF documents.

Why package nerds care

PyMuPDF exposes MuPDF's native rendering and document engine through a Pythonic API, giving Python users unusually broad access to text and image extraction, page rendering, annotations, redaction, document conversion, and low-level PDF objects. Package users should also know that the historic import name `fitz` can collide with an unrelated package.

Timeline

  • 2016: The documented 1.9 series tracked MuPDF's contemporary rendering engine and expanded document and annotation APIs.
  • Later: `pymupdf` replaced `fitz` as the preferred Python import name while compatibility was retained.

Related projects

  • MuPDF supplies the underlying rendering and document-processing engine.
  • The PyMuPDF organization also maintains utilities, optional font resources, and higher-level document-extraction projects built around the core binding.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 5 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
pymupdfcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-11-04
manager version2.0
manager updated2026-10-30
local dataok
upstreamnot checked
latest detectednot detected

https://pymupdf.readthedocs.io/en/latest/

install metadata

Package metadata

Package keybrew:pymupdf
Version2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/pymupdf
Homepagehttps://pymupdf.readthedocs.io/en/latest/
Upstream docshttps://pymupdf.readthedocs.io/en/latest/
LicenseAGPL-3.0-only
Source archivehttps://files.pythonhosted.org/packages/b0/23/3575cf6652171bba33fd4b41d34ab92c7ee75bb5e5790f5a2a044b9ba49b/pymupdf-2.0.tar.gz
Last updated2026-10-30T12:25:08+02:00
Pulseupdated
Dependenciesmupdf, python@3.15
Build dependenciesfreetype, swig
Bottleavailable (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepymupdf
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

python3-fitz 1.25.4+ds1-3+deb13u1

Python binding for MuPDF (forward compatibility name)

https://github.com/pymupdf/PyMuPDF

sudo apt install python3-fitz
  • Section: python
  • Architecture: all
  • Source Package: pymupdf
  • 2 dependencies
  • normalized package name match
  • Matched by: Pymupdf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-fitz from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-pymupdf 1.25.4+ds1-3+deb13u1

Python binding for MuPDF

https://github.com/pymupdf/PyMuPDF

sudo apt install python3-pymupdf
  • Section: python
  • Architecture: amd64
  • Source Package: pymupdf
  • 6 dependencies
  • normalized package name match
  • Matched by: Pymupdf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-pymupdf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

python3-fitz 1.23.7+ds1-1ubuntu2

Python binding for MuPDF

https://github.com/pymupdf/PyMuPDF

sudo apt install python3-fitz
  • Section: universe/python
  • Architecture: amd64
  • Source Package: pymupdf
  • 9 dependencies
  • normalized package name match
  • Matched by: Pymupdf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-fitz from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation