phantom-types

Data validator

Phantom types enable safe parsing and validation of data by making certain states unrepresentable at compile time

Phantom types for Python.

GitHub

205 stars
5 watching
9 forks
Language: Python
last commit: almost 2 years ago
Linked from 1 awesome list

mypyphantom-typespythonpython3refinedrefined-typesrefinement-typesstatic-analysisstatic-typingtypingvalidation

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
ambv/retypeRe-applies type annotations from .pyi stubs to codebases141
realpython/pytest-mypyAutomates mypy static type checking as part of pytest test runs249
mplanchard/safetywrapTypesafe wrappers for handling errors and absent data in Python44
pvs-hd-tea/pytypesInfer static type information from Python code by tracing execution paths11
davidfritzsche/pytest-mypy-testingA tool to verify mypy's static type analysis output31
dry-python/classesEnables typed polymorphism and type-safe business logic in Python without inheritance or interfaces.678
daveoncode/pyvaruA library for implementing custom validation rules across various data types and structures in Python.20
typeddjango/pytest-mypy-pluginsA plugin for testing type checking and stubs using mypy and pytest107
alecthomas/voluptuousA Python data validation library providing simple and flexible ways to validate complex data structures.1,823
erezsh/runtypeA Python library for run-time type validation and multiple dispatch utilities162
integralist/vim-mypyA Vim plugin for executing Python's static type checker.97
pynamodb/pynamodb-mypyA plugin that provides type checking and enforcement for PynamoDB models and attributes.4
kotlinisland/basedmypyA Python static type checker with additional features to improve typing and error reporting.148
mariusvniekerk/pytest-monkeytypeA pytest plugin that generates annotations and stubs for Python modules based on their type definitions43
mat1g3r/optionA library that provides Rust-like Option and Result types in Python to handle optional and error values in a more type-safe and expressive way.85