Python Typing

Open-source Python projects categorized as Typing

Top 23 Python Typing Projects

  1. mypy

    Optional static typing for Python

    Project mention: Great things about Rust that aren't just performance | news.ycombinator.com | 2025-01-12
  2. SaaSHub

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

    SaaSHub logo
  3. pytype

    A static type analyzer for Python code

    Project mention: Python Meta Circular Interpreter (2019) | news.ycombinator.com | 2024-12-18

    pytype (https://github.com/google/pytype) is based on symbolic interpretation of python bytecode, but with the data stack storing types rather than values. it works very well and has been running in production within google forever.

    the nice thing about writing a bytecode rather than an AST interpreter is that you can leverage a lot of the work the python compiler does, and work with the resulting simplified code.

  4. typeshed

    Collection of library stubs for Python, with static types

  5. pytermgui

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

    Project mention: 5 Best Python TUI Libraries for Building Text-Based User Interfaces | dev.to | 2024-11-09

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

  6. prisma-client-py

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

  7. typing

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

    Project mention: Python Type System Conformance Test Results | news.ycombinator.com | 2024-11-29

    preview: <https://htmlpreview.github.io/?https://github.com/python/typ...>

  8. smassh

    Smassh your Keyboard, TUI Edition

  9. torchtyping

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

  10. jaxtyping

    Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays. https://docs.kidger.site/jaxtyping/

    Project mention: Python type hints may not be not for me in practice | news.ycombinator.com | 2024-11-27

    You want runtime typechecking.

    See either beartype [1] or typeguard [2]. And if you're doing any kind of array-based programming (JAX or not), then jaxtyping [3].

    [1] https://github.com/beartype/beartype/

    [2] https://github.com/agronholm/typeguard

    [3] https://github.com/patrick-kidger/jaxtyping

  11. Deal

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

  12. pyserde

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

    Project mention: Pyserde | news.ycombinator.com | 2024-05-06
  13. sqlalchemy-stubs

    Mypy plugin and stubs for SQLAlchemy

  14. enforce

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

  15. typed-argument-parser

    Typed argument parser for Python

  16. streamlit-pydantic

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

  17. mltype

    Command line tool for improving typing skills (programmers friendly)

  18. typing_inspect

    Runtime inspection utilities for Python typing module

  19. pyanalyze

    A Python type checker

  20. RightTyper

    A fast and efficient type assistant for Python, including tensor shape inference

    Project mention: RightTyper: Auto-generate Python type hints | news.ycombinator.com | 2024-11-27
  21. phantom-types

    Phantom types for Python.

  22. runtype

    Utilities for run-time type validation and multiple dispatch

  23. basedmypy

    Based Python static type checker with baseline, sane default settings and based typing features

    Project mention: Based Static Typing for Python | news.ycombinator.com | 2024-12-13
  24. flake8-type-checking

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

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).

Python Typing discussion

Log in or Post with

Python Typing related posts

Index

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

# Project Stars
1 mypy 18,800
2 pytype 4,809
3 typeshed 4,456
4 pytermgui 2,362
5 prisma-client-py 1,932
6 typing 1,615
7 smassh 1,434
8 torchtyping 1,412
9 jaxtyping 1,301
10 Deal 767
11 pyserde 740
12 sqlalchemy-stubs 572
13 enforce 542
14 typed-argument-parser 539
15 streamlit-pydantic 480
16 mltype 453
17 typing_inspect 352
18 pyanalyze 352
19 RightTyper 252
20 phantom-types 206
21 runtype 162
22 basedmypy 156
23 flake8-type-checking 115

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?