types-xlrd
Typing stubs for xlrd
What it is and what it does
types-xlrd is a type stub package that adds static type annotations for the xlrd library, a tool for reading data from Excel spreadsheets. It is part of the typeshed project and allows type checkers like mypy and pyright to understand and validate code that uses xlrd, catching type errors before runtime.
The package contains no runtime code—it is purely metadata and type definitions. It targets xlrd version 2.0.* and has been tested against mypy 2.1.0 and pyright 1.1.409. To use it, you install both types-xlrd and xlrd itself; the type checker will then consult the stub definitions when analyzing your code. It requires Python 3.10 or later.
Use it for:
- Enable mypy or pyright to type-check code that reads Excel files with xlrd, catching column-access or method-call errors early.
- Provide IDE autocomplete and hover documentation for xlrd APIs in editors that support type stubs.
- Validate data extraction pipelines that parse .xls files, ensuring correct handling of workbook and sheet objects.
- Enforce type safety in data processing workflows that depend on xlrd without runtime overhead.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the xlrd library, enabling type checkers like mypy and pyright to validate code that reads Excel files with xlrd.
Yes, if you use xlrd and run a type checker. It is a lightweight, actively maintained stub package with no dependencies and permissive licensing. Install it alongside xlrd to gain type safety with no runtime cost. Not needed if you do not use type checking or do not use xlrd.
Install
types-xlrd on PyPI
pip
pip install types-xlrduv
uv add types-xlrdpoetry
poetry add types-xlrdInstalling types-xlrd
Before you install
Low friction: a pure stub package with no runtime dependencies. Actively maintained as part of typeshed, with recent updates and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-xlrd
# In your code, use xlrd normally; type checkers will now validate it:
import xlrd
workbook = xlrd.open_workbook('file.xls')
Requires Python 3.10 or later. Only provides type information; xlrd itself must be installed separately to actually read Excel files.
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration in pyproject.toml or similar.
- Coverage completeness: whether all xlrd 2.0.* APIs are fully annotated or if gaps remain.
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 — 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 304,220/month — #7,808 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_xlrd-2.0.0.20260518-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-aws-xray-sdkProvides type stubs for aws-xray-sdk, enabling…
permissive · top 15,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-openpyxlProvides type hints for openpyxl, enabling…
permissive · top 5,000 on PyPI
xlutilsxlutils provides utilities for reading,…
permissive · top 5,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-qrcodeProvides type stubs for the qrcode package,…
permissive · top 15,000 on PyPI
types-python-http-clientProvides type hints for python-http-client,…
permissive · top 15,000 on PyPI
types-cffiProvides type stubs for the cffi package,…
permissive · top 5,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI