An open API service indexing awesome lists of open source software.

https://github.com/niklasrosenstein/python-typeapi

Typeapi provides a sane and stable API to introspect Python type hints.
https://github.com/niklasrosenstein/python-typeapi

introspection library python reflection typing

Last synced: about 1 year ago
JSON representation

Typeapi provides a sane and stable API to introspect Python type hints.

Awesome Lists containing this project

README

          

python-typeapi

[documentation]: https://niklasrosenstein.github.io/python-typeapi/

[![Documentation](https://img.shields.io/badge/Documentation-blue?style=flat&logo=gitbook&logoColor=white)](https://NiklasRosenstein.github.io/python-typeapi/)
[![Python](https://github.com/NiklasRosenstein/python-typeapi/actions/workflows/python.yml/badge.svg)](https://github.com/NiklasRosenstein/python-typeapi/actions/workflows/python.yml)

The `typeapi` package provides a __unified and consistent API__ for the reflection and introspection of
Python type hints. In addition, it allows evaluating future annotations such as
[PEP585](https://peps.python.org/pep-0585/) (such as `list[str]`) and
[PEP604](https://peps.python.org/pep-0604/) (such as `int | str`) in versions that don't
natively support them.

__Requirements__:

* Python 3.8 or newer

Please file bug reports and feature requests [on GitHub](https://github.com/NiklasRosenstein/python-typeapi/issues).