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: over 2 years ago
Linked from 2 awesome lists

mypyoption-typeoptionalpep484resultresult-typetyping

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
rustedpy/resultA library providing a simple, type-safe way to handle values with potential errors in Python 3.1,625
mplanchard/safetywrapTypesafe wrappers for handling errors and absent data in Python44
rustedpy/maybeProvides an Option type inspired by Rust for Python 371
phelmkamp/valorProvides Go types for optionals and results with values or errors.17
orsinium-labs/mypy-baselineA tool to integrate mypy into an existing Python project and track progress on resolving type errors.59
holoviz/paramA 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.435
kotlinisland/basedtypingA collection of helpers and utilities to aid in dealing with types at static analysis and runtime.9
jorenham/optypeA library that provides runtime-checkable type protocols for operator overloading in Python24
mikeorr/unipathA Python module that provides a convenient and object-oriented interface to file/directory operations.513
vickumar1981/pyeffectsImplements functional types for handling side-effects in Python with Either, Option, Try, and Future monads.31
davidhewitt/pythonizeA Rust-based library that converts Rust objects to Python values and back using the PyO3 library.211
dry-python/classesEnables typed polymorphism and type-safe business logic in Python without inheritance or interfaces.678
orsinium-labs/typeforceA tool to simplify Python package maintenance by automating type checking and stub installation.19
integralist/vim-mypyA Vim plugin for executing Python's static type checker.97
antonagestam/phantom-typesPhantom types enable safe parsing and validation of data by making certain states unrepresentable at compile time205