pymupdf-stubs
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
fitzis supported as a compatibility re-export ofpymupdf.- Some highly dynamic APIs may still be typed as
Anyor 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75665560deb3ccf4a34294f39f28138a78a4abbb8f2714d86770a181251b8ef6
|
|
| MD5 |
6f85aa25b98287615e212dee3529da99
|
|
| BLAKE2b-256 |
32a5edff8f4a6f34cbad9816818427e31f6602d54ea000a353d038db85f0783b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9a5ed0581036eb0f04b9553b435af4d97ffe65590f262e68f18650b59fa792
|
|
| MD5 |
36c1e70a2a45a33e75d7366e7d0dbf28
|
|
| BLAKE2b-256 |
4b59b2f09311bcba000990acdfda9a712fb83878922f6b99b047cae9f88038bb
|