Python Typing

Open-source Python projects categorized as Typing

Top 23 Python Typing Projects

  • mypy

    Optional static typing for Python

    Project mention: Polars – A bird's eye view of Polars | | 2024-02-13

    It's got type annotations and mypy has a discussion about it here as well:

  • pytype

    A static type analyzer for Python code

    Project mention: A Tale of Two Kitchens - Hypermodernizing Your Python Code Base | | 2023-11-12

    Pyre from Meta, pyright from Microsoft and PyType from Google provide additional assistance. They can 'infer' types based on code flow and existing types within the code.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • typeshed

    Collection of library stubs for Python, with static types

    Project mention: What's the point of using `Any` in Union, such as `str | Any` | /r/learnpython | 2023-08-17

    "csv.pyi is from VS Code Pylance extension" is misleading. Yes, it's included in the code base of the extension, but it's likely originally from python/typeshed. I diffed csv.pyi in the extension and the repository, and they're exactly the same.

  • pytermgui

    Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!

    Project mention: Using Textual to Build a ChatGPT TUI App | | 2023-07-21

    Several libraries, such as urwid or PyTermGUI, allow the development of TUI applications in Python. For enhancing the functionality and aesthetics of TUI apps, they offer some fundamental and more sophisticated utilities. But there is one package that is truly exceptional and might even be so amazing that it sparks a TUI renaissance (I really wanted to put "TUI renaissance" somewhere in this article).

  • typing

    Python static typing home. Hosts the documentation and a user help forum.

    Project mention: Writing Python like it’s Rust | /r/programming | 2023-05-21
  • prisma-client-py

    Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use

    Project mention: Sunday Daily Thread: What's everyone working on this week? | /r/Python | 2023-04-16

    almost samezies, although I'm trying prisma-client-py for team-specific reasons.

  • torchtyping

    Type annotations and dynamic checking for a tensor's shape, dtype, names, etc.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • smassh

    Smassh your Keyboard, TUI Edition

  • jaxtyping

    Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays.

    Project mention: Writing Python like it's Rust | | 2023-05-21

    Try using [jaxtyping](

    It also supports numpy/pytorch/etc.

  • Deal

    🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.

  • pyserde

    Yet another serialization library on top of dataclasses, inspired by serde-rs.

    Project mention: pyserde: Serialization library on top of dataclasses, inspired by serde-rs | | 2023-11-18
  • sqlalchemy-stubs

    Mypy plugin and stubs for SQLAlchemy

  • enforce

    Python 3.5+ runtime type checking for integration testing and data validation

  • mltype

    Command line tool for improving typing skills (programmers friendly)

  • typed-argument-parser

    Typed argument parser for Python

    Project mention: I am sick of writing argparse boilerplate code, so I made "duckargs" to do it for me | /r/Python | 2023-03-03

    Hmm… did you try such approaches, as [click]( or[tap](

  • typing_inspect

    Runtime inspection utilities for Python typing module

  • streamlit-pydantic

    🪄 Auto-generate Streamlit UI from Pydantic Models and Dataclasses.

  • pyanalyze

    A Python type checker

    Project mention: GitHub - quora/pyanalyze: A Python type checker | /r/Python | 2023-05-24
  • typedload

    Python library to load dynamically typed data into statically typed data structures

    Project mention: Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19 | | 2023-03-06

    Author of typedload here!

    FastAPI relies on (not so fast) pydantic, which is one of the slowest libraries in that category.

    Don't expect to find such benchmarks on the pydantic documentation itself, but the competing libraries will have them.


  • phantom-types

    Phantom types for Python.

  • runtype

    Utilities for run-time type validation and multiple dispatch

  • flake8-type-checking

    Flake8 plugin for managing type-checking imports & forward references.

  • option

    Rust like Option and Result types in Python (by MaT1g3R)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-13.

Python Typing related posts


What are some of the best open-source Typing projects in Python? This list will help you:

Project Stars
1 mypy 17,253
2 pytype 4,492
3 typeshed 3,978
4 pytermgui 1,987
5 typing 1,520
6 prisma-client-py 1,496
7 torchtyping 1,320
8 smassh 1,207
9 jaxtyping 817
10 Deal 660
11 pyserde 636
12 sqlalchemy-stubs 555
13 enforce 542
14 mltype 437
15 typed-argument-parser 433
16 typing_inspect 324
17 streamlit-pydantic 296
18 pyanalyze 288
19 typedload 246
20 phantom-types 179
21 runtype 155
22 flake8-type-checking 107
23 option 75
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives