types-olefile
Typing stubs for olefile
Decision gist · record as of 2026-08-14
Yes, if you use olefile and want static type checking. It has no runtime cost, low install friction, and is actively maintained as part of typeshed. Install it alongside olefile in projects that enforce type safety; skip it only if you do not use a type checker or do not use olefile.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; olefile itself must be installed separately to use the types at runtime.
- Low install friction; a pure-Python stub package with no runtime dependencies.
- Actively maintained as part of typeshed, with recent updates as of 2026-05-08.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2026-05-08 (98 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 135,208 downloads/mo, #11,448 on PyPI
Alternatives
Verify before relying
pip install types-olefile
import olefile
ole = olefile.OleFileIO('document.doc')- Whether this stub package is automatically discovered by type checkers or requires explicit configuration.
- Coverage completeness: what fraction of olefile's public API is annotated in this stub version.
What it is and what it does
types-olefile is a type stub package that provides static type information for the olefile library, which handles OLE compound document files (used by older Microsoft Office formats, email attachments, and other binary container formats). It is part of the typeshed project and allows type checkers like mypy and pyright to understand the types and signatures of olefile's API, catching type errors during development rather than at runtime.
The package contains no executable code—only type annotations (.pyi files)—and has no runtime dependencies. It is tested against olefile 0.47.x and validated with mypy 1.20.0 and pyright 1.1.408. Installation is optional but recommended for projects that use olefile and want static type checking.
Use it for
- Enable mypy or pyright to type-check code that calls olefile functions for parsing OLE documents.
- Catch type mismatches early in development when working with OLE file metadata or stream extraction.
- Provide IDE autocomplete and inline documentation for olefile methods in editors that support type stubs.
- Validate that code correctly handles olefile's return types and exceptions before runtime.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use olefile and want static type checking.
It has no runtime cost, low install friction, and is actively maintained as part of typeshed. Install it alongside olefile in projects that enforce type safety; skip it only if you do not use a type checker or do not use olefile.
Install
types-olefile on PyPI
Before you install
Low install friction; a pure-Python stub package with no runtime dependencies. Actively maintained as part of typeshed, with recent updates as of 2026-05-08.
Requires Python 3.10 or later; olefile itself must be installed separately to use the types at runtime.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-olefile
import olefile
ole = olefile.OleFileIO('document.doc')
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration.
- Coverage completeness: what fraction of olefile's public API is annotated in this stub version.
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 98 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 135,208 / month, #11,448 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_olefile-0.47.0.20260508-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 olefile”
- types-olefileProvides type annotations for the olefile package, enabling type…
- olefileolefile parses, reads, and writes Microsoft OLE2 compound files…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
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-pyperclip · olefile · types-objgraph · types-tabulate · oletools · types-Markdown · types-jmespath · types-pywin32 · types-mypy-extensions · compoundfiles