option

Value handlers

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

Rust like Option and Result types in Python

GitHub

85 stars
1 watching
5 forks
Language: Python
last commit: 11 months ago
Linked from 2 awesome lists

mypyoption-typeoptionalpep484resultresult-typetyping

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
rustedpy/result A library providing a simple, type-safe way to handle values with potential errors in Python 3. 1,597
mplanchard/safetywrap Typesafe wrappers for handling errors and absent data in Python 44
rustedpy/maybe Provides an Option type inspired by Rust for Python 3 67
phelmkamp/valor Provides Go types for optionals and results with values or errors. 17
orsinium-labs/mypy-baseline A tool to integrate mypy into an existing Python project and track progress on resolving type errors. 55
holoviz/param A Python library providing a set of attributes to make code more reliable and maintainable by declaring parameters with type and range checking, documentation strings, default values, etc. 434
kotlinisland/basedtyping A collection of helpers and utilities to aid in dealing with types at static analysis and runtime. 9
jorenham/optype An opinionated typing package that simplifies type hints in Python by providing protocols for special methods like multiplication and addition 15
mikeorr/unipath An object-oriented library that simplifies file/directory operations in Python 514
vickumar1981/pyeffects Implements functional types for handling side-effects in Python with Either, Option, Try, and Future monads. 31
davidhewitt/pythonize A Rust-based library that converts Rust objects to Python values and back using the PyO3 library. 201
dry-python/classes Typed polymorphism primitives for Python business logic 670
orsinium-labs/typeforce A tool to simplify Python package maintenance by automating type checking and stub installation. 19
integralist/vim-mypy A Vim plugin for executing Python's static type checker. 97
antonagestam/phantom-types Phantom types enable safe parsing and validation of data by making certain states unrepresentable at compile time 199