openpyxl-stubs
Type stubs for openpyxl
What it is and what it does
openpyxl-stubs is a type stub package that adds type annotations for openpyxl, enabling mypy to understand and validate code that uses openpyxl for reading and writing Excel files. Once installed, mypy automatically recognizes the type information without requiring any additional configuration.
The package works by providing type definitions that mypy consults during static analysis. It depends on mypy, typing-extensions, and openpyxl itself. The package is classified as Alpha and has not been actively maintained since 2023-01-12, so its type coverage may lag behind newer openpyxl releases.
Use it for:
- Enable mypy type checking in projects that use openpyxl to read or write Excel spreadsheets
- Catch type errors at development time when passing openpyxl objects between functions
- Document expected types for openpyxl function parameters and return values in your codebase
- Integrate openpyxl into a strictly typed Python project without disabling type checking for Excel-related code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for openpyxl to enable static type checking with mypy when working with Excel files in Python.
Yes, if you are using openpyxl with a version released before or around January 2023 and want mypy type checking. No, if you rely on recent openpyxl features or expect ongoing maintenance—the package is abandoned and type stubs may be incomplete or outdated for current openpyxl versions.
Install
openpyxl-stubs on PyPI
pip
pip install openpyxl-stubsuv
uv add openpyxl-stubspoetry
poetry add openpyxl-stubsInstalling openpyxl-stubs
Before you install
Installation is straightforward with no complex dependencies beyond mypy, typing-extensions, and openpyxl itself. However, the package is marked as abandoned with no commits since 2023-01-12, meaning type stubs may not reflect recent openpyxl API changes.
License in practice
Licensed under MIT license, a permissive license allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install openpyxl-stubs
from openpyxl import load_workbook
wb = load_workbook('file.xlsx')
Verify before relying
- Whether type stub coverage is complete for the version of openpyxl you are using
- Compatibility with recent openpyxl releases given the package's abandoned status since January 2023
Package facts
| License | MIT license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — mypy, typing-extensions, openpyxl |
| Maintenance | abandoned — 1,310 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 396,346/month — #6,970 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openpyxl_stubs-0.1.25-py3-none-any.whl
Keywords: utility, mypy, stubs
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
types-openpyxlProvides type hints for openpyxl, enabling…
permissive · top 5,000 on PyPI
openpyxlopenpyxl reads and writes Excel 2010…
permissive · top 1,000 on PyPI
pyxlsxProvides dictionary-like read and write access…
permissive · top 15,000 on PyPI
xls2xlsxConverts legacy Excel files (.xls), HTML…
permissive · top 5,000 on PyPI
robotframework-excellibProvides Robot Framework keywords for reading,…
permissive · top 15,000 on PyPI
drf-excelAdds an Excel spreadsheet (xlsx) renderer to…
permissive · top 15,000 on PyPI
pyexcel-xlsxReads, manipulates, and writes xlsx and xlsm…
permissive · top 5,000 on PyPI
pylightxlReads and writes Microsoft Excel files (.xlsx,…
permissive · top 15,000 on PyPI
xlcalculatorReads MS Excel files and translates Excel…
permissive · top 15,000 on PyPI