Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Type Safety Python Packages

Python packages with the GitHub topic type-safety. Sorted by monthly downloads, with stars and forks.
rustedpy
result

NOT MAINTAINED - A simple Rust like Result type for Python 3. Fully type annotated.

2.6M 2K 92
dry-python
returns

Make your functions return something meaningful, typed, and safe!

1.6M 4K 163
assertpy
assertpy

Fluent, fully typed assertion library for Python: your type checker sees only the assertions that fit the value, and every failure carries a structured diff. Soft assertions, polling, inline snapshots, OpenAPI contracts

1M 531 80
citry-dev
citry-core

Safe, fast, and smart Python frontend: typed components with server events and Vue, checked before your app runs. Works with Django, FastAPI and Flask.

48K 68 2
wemake-services
safe-assert

Safe and composable assert for Python that can be used together with optimised mode

47K 19 1
holon-sh
holon-types

Composable, type-safe MCP servers

34K 1 0
chanx-dev
chanx

Typed WebSocket APIs for Python: one handler per message, with routing, validation, broadcasting, AsyncAPI docs and generated TypeScript/Python/Go clients. Django Channels, FastAPI, ASGI.

29K 176 9
altitudenetworks
dynamoquery

Python AWS DynamoDB ORM

28K 27 5
mgrinshpon
toolz-stubs

Type stubs for toolz and tlz.

23K 5 3
yaniv-golan
affinity-sdk

Unofficial strongly-typed Python SDK for the Affinity CRM API - full read/write coverage, Pydantic v2, MCP server included. For when you need more than Affinity's official MCP

23K 1 1
keithasaurus
koda

Type-safe functional tools for Python.

19K 100 6
overflowy
safe-result

A Python package for elegant error handling, inspired by Rust's Result type

15K 186 7
LostInDarkMath
pedantic

Some useful tools and decorators including runtime type checking

12K 25 2
Dobiasd
undictify

Python library providing type-checked function calls at runtime

11K 96 9
dfm88
django-qp

Pydantic-powered query parameter validation for Django and DRF — type-safe, IDE-friendly, async-ready

11K 3 0
holon-sh
create-holon-app

Composable, type-safe MCP servers

11K 1 0
citry-dev
citry

Safe, fast, and smart Python frontend: typed components with server events and Vue, checked before your app runs. Works with Django, FastAPI and Flask.

9K 68 2
kidoz
zodish

Zod-inspired, type-safe validation library for Python 3.14+ built on a Rust/PyO3 core. Immutable composable schemas, aggregated issues, async refinements, codecs, and JSON Schema export.

8K 1 0
Solganis
assertpy2

Fluent, fully typed assertion library for Python: your type checker sees only the assertions that fit the value, and every failure carries a structured diff. Soft assertions, polling, inline snapshots, OpenAPI contracts

5K 7 2
todofixthis
phx-filters

Opinionated schema validation for Python - chain type-safe filters with | like UNIX pipes

5K 2 3
citry-dev
citry-ui

Safe, fast, and smart Python frontend: typed components with server events and Vue, checked before your app runs. Works with Django, FastAPI and Flask.

4K 68 2
vincentk
pynzli

Computational structuralism in standard C++23: mathematics the compiler checks

4K 8 1
dmayo3
mocksafe

A mocking library developed to enable static and runtime type checking of your mocks to keep them in sync with production code.

4K 13 2
citry-dev
citry-lsp

Safe, fast, and smart Python frontend: typed components with server events and Vue, checked before your app runs. Works with Django, FastAPI and Flask.

3K 68 2
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology