typeapi
Decision gist · record as of 2026-08-14
Yes, if you need to work with type hints at runtime or support older Python versions while using modern type syntax. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Install only if you actually need type introspection; it's a specialized tool, not a general utility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or newer.
- Low friction install with a single runtime dependency (typing-extensions).
- Actively maintained with recent releases; last commit 2026-04-09 and latest release 2025-10-23 indicate ongoing development.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations.
last release 2025-10-23 (295 days) · last repo commit 2026-04-09 · 8 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 260,683 downloads/mo, #8,394 on PyPI
Alternatives
Verify before relying
pip install typeapi
from typeapi import TypeHint
hint = TypeHint.from_string('list[str]')
print(hint)- Whether typeapi handles all edge cases in type hint evaluation or has known limitations with complex nested generics.
- Performance characteristics when evaluating large numbers of type hints or deeply nested type structures.
- Specific use cases where this unified API provides advantages over direct use of the typing module.
What it is and what it does
typeapi is a reflection library that standardizes how you inspect and work with Python type hints at runtime. It wraps the complexity of Python's typing module across different versions and provides a consistent interface for examining type annotations, whether they're simple types like `int`, generic types like `list[str]`, or union types like `int | str`. The package is particularly useful because it lets you use modern type syntax (PEP 585 and PEP 604) on Python versions that don't natively support them, bridging compatibility gaps.
The library depends only on typing-extensions and targets Python 3.8 and newer. It's actively maintained and carries no known security vulnerabilities. The MIT license places no restrictions on how you use it.
Use it for
- Evaluate modern type hint syntax like `list[str]` and `int | str` on Python versions where native support is unavailable.
- Build type-aware code generation or validation tools that need a consistent API across Python versions.
- Implement runtime type checking or serialization frameworks that require deep introspection of type annotations.
- Create documentation or IDE tooling that needs to analyze and display type information uniformly.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to work with type hints at runtime or support older Python versions while using modern type syntax.
The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Install only if you actually need type introspection; it's a specialized tool, not a general utility.
Install
typeapi on PyPI
Before you install
Low friction install with a single runtime dependency (typing-extensions). Actively maintained with recent releases; last commit 2026-04-09 and latest release 2025-10-23 indicate ongoing development.
Requires Python 3.8 or newer.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations.
Quickstart
pip install typeapi
from typeapi import TypeHint
hint = TypeHint.from_string('list[str]')
print(hint)
Verify before relying
- Whether typeapi handles all edge cases in type hint evaluation or has known limitations with complex nested generics.
- Performance characteristics when evaluating large numbers of type hints or deeply nested type structures.
- Specific use cases where this unified API provides advantages over direct use of the typing module.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping-extensions |
| Maintenance | Actively maintained 295 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 260,683 / month, #8,394 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: typeapi-2.3.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 › “python type hint introspection”
- typeapiProvides a unified API for reflecting and introspecting Python type…
- typishTypish provides runtime type checking and introspection functions for…
- typing-validationRuntime validation of Python objects against type hints, with three…
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 griffe-typingdoc · eval-type-backport · types-beautifulsoup4 · typing-inspection · typing-inspect · flake8-pep585 · types-grpcio-reflection · inspect2 · typish · pgi