types-xlrd
Typing stubs for xlrd
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Only provides type information; xlrd itself must be installed separately to actually read Excel files.
- Low friction: a pure stub package with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 304,220 downloads/mo, #7,808 on PyPI
Alternatives
Verify before relying
pip install types-xlrd
# In your code, use xlrd normally; type checkers will now validate it:
import xlrd
workbook = xlrd.open_workbook('file.xls')- 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.
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 on it.
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
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.
Requires Python 3.10 or later. Only provides type information; xlrd itself must be installed separately to actually read Excel files.
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')
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 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_xlrd-2.0.0.20260518-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs xlrd”
- types-xlrdProvides type hints for the xlrd library, enabling type checkers like…
- xlutilsxlutils provides utilities for reading, writing, copying, and…
- excelrdExtracts data from Microsoft Excel spreadsheet files (.xls format)…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-aws-xray-sdk · types-html5lib · types-toml · types-openpyxl · xlutils · types-docutils · types-qrcode · types-python-http-client · types-cffi · types-mypy-extensions