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
85 stars
1 watching
5 forks
Language: Python
last commit: 12 months ago
Linked from 2 awesome lists
mypyoption-typeoptionalpep484resultresult-typetyping
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,625 |
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 | 70 |
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. | 59 |
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. | 435 |
kotlinisland/basedtyping | A collection of helpers and utilities to aid in dealing with types at static analysis and runtime. | 9 |
jorenham/optype | A library that provides runtime-checkable type protocols for operator overloading in Python | 24 |
mikeorr/unipath | A Python module that provides a convenient and object-oriented interface to file/directory operations. | 513 |
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. | 211 |
dry-python/classes | Enables typed polymorphism and type-safe business logic in Python without inheritance or interfaces. | 678 |
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 | 205 |