typeshed-client
A library for accessing stubs in typeshed.
Decision gist · record as of 2026-08-14
Yes. Low install friction, permissive license, active maintenance, no vulnerabilities, and a clear use case for tools that need programmatic access to typeshed. Install if you're building a static analyzer, stub validator, or type introspection tool; skip if you only need type checking for your own code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: single runtime dependency (typing-extensions), pure Python wheel, actively maintained with releases every few weeks.
- Last commit 2026-08-03, no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) — you can use, modify, and distribute this package freely with minimal restrictions.
last release 2026-08-03 (11 days) · last repo commit 2026-08-03 · 31 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,992,949 downloads/mo, #3,376 on PyPI
Alternatives
Verify before relying
pip install typeshed_client
from typeshed_client import get_stub_file, get_stub_names
stub_path = get_stub_file('typing')
names = get_stub_names('collections')- Whether the bundled typeshed version is kept current with the main typeshed repository
- Performance characteristics when resolving names across large stub hierarchies
What it is and what it does
typeshed_client is a library for programmatically accessing type stubs from typeshed and PEP 561 stub packages. It provides three main capabilities: finding stub files by module name, parsing stubs to extract defined names and their metadata (including whether they are exported), and resolving names to their definitions even when those definitions span multiple stub files.
The package bundles a copy of typeshed and exposes it through a SearchContext API that lets you customize which typeshed version to use, which search paths to query, and how to interpret version and platform checks in stubs. It's designed for tools that need to inspect type annotations at runtime or build time—static analyzers, stub validators, and introspection tools—rather than for end-user type checking.
Use it for
- Static type checkers and linters that need to resolve type definitions from typeshed stubs.
- Tools that validate or lint stub files for correctness and completeness.
- Documentation generators that extract type information from stubs for rendering.
- Runtime introspection tools that need to query what names are exported from a typed module.
- IDE plugins or language servers that resolve stub definitions for hover and goto-definition features.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, permissive license, active maintenance, no vulnerabilities, and a clear use case for tools that need programmatic access to typeshed. Install if you're building a static analyzer, stub validator, or type introspection tool; skip if you only need type checking for your own code.
Install
typeshed-client on PyPI
Before you install
Low friction: single runtime dependency (typing-extensions), pure Python wheel, actively maintained with releases every few weeks. Last commit 2026-08-03, no known vulnerabilities.
License in practice
MIT license (permissive) — you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install typeshed_client
from typeshed_client import get_stub_file, get_stub_names
stub_path = get_stub_file('typing')
names = get_stub_names('collections')
Verify before relying
- Whether the bundled typeshed version is kept current with the main typeshed repository
- Performance characteristics when resolving names across large stub hierarchies
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping-extensions |
| Maintenance | Actively maintained 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,992,949 / month, #3,376 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development |
Evidence: typeshed_client-2.13.0-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 › “typeshed stub file lookup”
- typeshed-clientRetrieves stub file paths, AST nodes, and exported names from…
- flake8-pyiA Flake8 plugin that lints Python type stub files (.pyi) with…
- types-polibProvides type stubs for the polib package, enabling static type…
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-typed-ast · docutils-stubs · types-beautifulsoup4 · types-Pillow · types-Flask · types-certifi · types-attrs · types-click · flake8-pyi · angr-data