Skip to main content

pymupdf-stubs

PyPI Changelog License

Type stubs for PyMuPDF (pymupdf / fitz), published as a PEP 561 stub-only package.

Installation

pip install -U pymupdf-stubs

This package targets current PyMuPDF releases.

Usage

No runtime code changes are required. Install stubs and run your type checker.

import pymupdf
import fitz

doc = pymupdf.Document()
page = doc[0]
drawings = page.get_drawings()

Type Checking

This repository validates stubs with:

uv run ty check

Compatibility Notes

  • fitz is supported as a compatibility re-export of pymupdf.
  • Some highly dynamic APIs may still be typed as Any or broad dictionary shapes.
  • If a PyMuPDF API is missing or incorrect, please open an issue.

Contributing

Issues and PRs are welcome: https://github.com/elohmeier/pymupdf-stubs/issues

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymupdf_stubs-1.28.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymupdf_stubs-1.28.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file pymupdf_stubs-1.28.2.tar.gz.

File metadata

  • Download URL: pymupdf_stubs-1.28.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pymupdf_stubs-1.28.2.tar.gz
Algorithm Hash digest
SHA256 75665560deb3ccf4a34294f39f28138a78a4abbb8f2714d86770a181251b8ef6
MD5 6f85aa25b98287615e212dee3529da99
BLAKE2b-256 32a5edff8f4a6f34cbad9816818427e31f6602d54ea000a353d038db85f0783b

See more details on using hashes here.

File details

Details for the file pymupdf_stubs-1.28.2-py3-none-any.whl.

File metadata

  • Download URL: pymupdf_stubs-1.28.2-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pymupdf_stubs-1.28.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f9a5ed0581036eb0f04b9553b435af4d97ffe65590f262e68f18650b59fa792
MD5 36c1e70a2a45a33e75d7366e7d0dbf28
BLAKE2b-256 4b59b2f09311bcba000990acdfda9a712fb83878922f6b99b047cae9f88038bb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.28.2 This release

2 files

1.28.0

2 files

1.27.2.2.post2

2 files

1.27.2.2.post1

2 files

1.27.2.2

2 files

1.26.7.post5

2 files

1.26.7.post4

2 files

1.26.7.post3

2 files

1.26.7.post2

2 files

1.26.7.post1

2 files

1.26.7

2 files

1.26.1.post1

2 files

1.26.1

2 files

1.25.5.post7

2 files

1.25.5.post6

2 files

1.25.5.post5

2 files

1.25.5.post4

2 files

1.25.5.post3

2 files

1.25.5.post2

2 files

1.25.5.post1

2 files

1.25.5

2 files

1.25.4

2 files

1.24.14.post3

2 files

1.24.14.post2

2 files

1.24.14.post1

2 files

1.24.14

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page