Skip to main content

Type stubs for PyMuPDF (fitz), automatically generated

Project description

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

Project details


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.26.7.post3.tar.gz (10.5 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.26.7.post3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file pymupdf_stubs-1.26.7.post3.tar.gz.

File metadata

  • Download URL: pymupdf_stubs-1.26.7.post3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.26.7.post3.tar.gz
Algorithm Hash digest
SHA256 9455885f29a7d13d580592858f699ab0668d3034ea8308b0fa19873bfb26189b
MD5 cddc6a24a637e3c06da7a3d9733826ed
BLAKE2b-256 18ac4c4dc877577e656de3653dbbbd0fe6e1e277f58729c48fef9d1f163bab0d

See more details on using hashes here.

File details

Details for the file pymupdf_stubs-1.26.7.post3-py3-none-any.whl.

File metadata

  • Download URL: pymupdf_stubs-1.26.7.post3-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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.26.7.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 e63292b4484a512efe7e5d31d0648461bf112c58fe8c36506e8eadad4f2f25ad
MD5 b080a9e444c5e5c1c737e2e934ce9ef1
BLAKE2b-256 d9d97d7a8a0611475a6bb3b70c7dba5abd5d6835a86d45bc6553b4efce9de798

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page