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.28.0.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.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymupdf_stubs-1.28.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.0.tar.gz
Algorithm Hash digest
SHA256 d174e2a75905aa3df64b4f116480d355c1fc10a1b000d5590cf0a6b55fa90f9e
MD5 799938dd8678d783b186f902e216dce4
BLAKE2b-256 b817c290ac678a08f6935a017404e198782bce2f5cebde10e894af9441d07f1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf_stubs-1.28.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54ce4204c1ab99e9d7cbb1d4b2fa3a60cc7c33ba6cef6d89abb963124a00d7fd
MD5 88c87199651232b486a5dad68a95114b
BLAKE2b-256 c89906a51122959740c8ba93e50693a761bd7410edcb7cbc4fa4d408bb610869

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