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
Metadata
Release files for pymupdf-stubs 1.28.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymupdf_stubs-1.28.2.tar.gz | 11.8 kB | Without provenance | Details for pymupdf_stubs-1.28.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymupdf_stubs-1.28.2-py3-none-any.whl | Python 3 | none | any | Details for pymupdf_stubs-1.28.2-py3-none-any.whl |
Total release size: 24.6 kB
Release files / pymupdf_stubs-1.28.2.tar.gz
| Download URL | pymupdf_stubs-1.28.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75665560deb3ccf4a34294f39f28138a78a4abbb8f2714d86770a181251b8ef6
|
|
BLAKE2b-256 checksum How to use checksums |
32a5edff8f4a6f34cbad9816818427e31f6602d54ea000a353d038db85f0783b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / pymupdf_stubs-1.28.2-py3-none-any.whl
| Download URL | pymupdf_stubs-1.28.2-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f9a5ed0581036eb0f04b9553b435af4d97ffe65590f262e68f18650b59fa792
|
|
BLAKE2b-256 checksum How to use checksums |
4b59b2f09311bcba000990acdfda9a712fb83878922f6b99b047cae9f88038bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for pymupdf-stubs 1.28.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.