skillfed

types-openpyxl

Typing stubs for openpyxl

types-openpyxl v3.1.5.20260807 6.2M downloads/30d#1,953 on PyPI37
Permissive license Apache-2.0 Active released

What it is and what it does

types-openpyxl is a type stub package that provides type annotations for the openpyxl library. It allows Python type checkers to understand and validate code that uses openpyxl for reading and writing Excel files. The stubs are maintained as part of the typeshed project and are kept in sync with openpyxl releases.

When installed alongside openpyxl, this package enables your IDE and type checker to catch type errors before runtime—for example, catching incorrect method calls or type mismatches when working with worksheets and cells. The package requires Python 3.10 or later and has no runtime dependencies, making it a lightweight addition to your development environment.

Use it for:

  • Enable mypy or pyright to type-check code that uses openpyxl for spreadsheet automation
  • Catch type errors in Excel file generation scripts before running them
  • Improve IDE autocomplete and inline documentation when writing openpyxl code
  • Validate data transformation pipelines that read and write Excel files
  • Enforce type safety in team projects that process Excel data

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type hints for openpyxl, enabling static type checkers like mypy, pyright, and ty to validate code that uses openpyxl.

Yes, if you use openpyxl and want static type checking. Install it as a dev dependency alongside openpyxl 3.1.5 to get accurate type hints. The package is actively maintained, has no runtime overhead, and is part of the official typeshed project. No security vulnerabilities are known.

Install

types-openpyxl on PyPI

pip

pip install types-openpyxl

uv

uv add types-openpyxl

poetry

poetry add types-openpyxl

Installing types-openpyxl

Before you install

Low install friction; a pure stub package with no runtime dependencies. Actively maintained as part of typeshed, with a release 7 days old and tested against mypy 2.3.0, pyright 1.1.411, and ty 0.0.59.

License in practice

Apache-2.0 permissive license; you can use this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install types-openpyxl

import openpyxl
wb = openpyxl.load_workbook('file.xlsx')

Requires Python 3.10 or later

Verify before relying

  • Whether these stubs cover all public APIs in openpyxl 3.1.5 or only a subset
  • Compatibility with openpyxl versions other than 3.1.5

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 7 days since the last release
Last repo commit
First released
Downloads 6,227,004/month — #1,953 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: types_openpyxl-3.1.5.20260807-py3-none-any.whl

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs openpyxlmypy openpyxl typingstatic type checking excelopenpyxl type annotationspyright excel librarytypeshed openpyxl stubstype hints spreadsheet
type-stubsstatic-analysis

More Software Development packages