Registry / type-stubs / types-olefile

types-olefile

JSON →
library0.47.0.20260508pypypiunverified

Typing stubs for olefile (v0.47.0.20260408), provided by typeshed. These stubs enable static type checking for the olefile package. The package follows typeshed's release cadence, typically updated to match CPython's typing stubs.

pip install types-olefile
INSTALL
IMPORT
SIG · TYPES-OLEFILE
T
types-olefile
type-stubspythonv0.47.0.20260508
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.47.0.20260508 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OleFileIO
from olefile import OleFileIO
from olefile-stubs import OleFileIO

Open an OLE2 file, check for stream existence, and read metadata.

from olefile import OleFileIO with OleFileIO('example.ole') as ole: if ole.exists('\x05SummaryInformation'): meta = ole.get_metadata() print(meta.author, meta.title)
Debug
Known issues
gotchaYou must install both olefile and types-olefile. types-olefile alone does not provide runtime functionality.
fix
Install both: pip install olefile types-olefile
affects: all
gotchaThe stubs only cover olefile's public API. Internal functions or undocumented methods may not be typed.
fix
Use only documented public API to benefit from type hints.
affects: all
deprecatedSome older olefile methods like `getproperties` are deprecated and not fully typed in stubs.
fix
Use OleFileIO.get_metadata() instead.
affects: >=0.47.0.20260408
Upgrade
Version history
0.47.0.20260508latest on PyPI · released May 8, 2026
Audit
Dependencies
olefilerequiredRuntime dependency for which types are provided
Agent activity
34 hits · last 30 days
node
32
OpenAI (training)
1
Resources
types-olefile — pip install types-olefile · libregistry