safetywrap
Error handling library
Typesafe wrappers for handling errors and absent data in Python
Fully typesafe, Rust-like Result and Option types for Python
44 stars
4 watching
3 forks
Language: Python
last commit: about 4 years ago
Linked from 2 awesome lists
optionpythonpython3resultresult-typerustrust-optionrust-resulttypesafetyping
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 |
mat1g3r/option | 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. | 85 |
rustedpy/maybe | Provides an Option type inspired by Rust for Python 3 | 70 |
dry-python/classes | Enables typed polymorphism and type-safe business logic in Python without inheritance or interfaces. | 678 |
oliverbrotchie/optionals | Provides error handling and options for TypeScript and Deno similar to Rust's Option and Result enums | 179 |
vickumar1981/pyeffects | Implements functional types for handling side-effects in Python with Either, Option, Try, and Future monads. | 31 |
antonagestam/phantom-types | Phantom types enable safe parsing and validation of data by making certain states unrepresentable at compile time | 205 |
snok/flake8-type-checking | Analyze and optimize type-checking imports in Python code to improve maintainability and runtime performance. | 113 |
hauntsaninja/useful_types | Provides commonly used data structures and protocols in Python to improve code clarity and maintainability | 115 |
kotlinisland/basedtypeshed | Provides static type annotations for the Python standard library and third-party packages | 3 |
luttik/auto-optional | Enforces consistent use of optional type annotations in Python code | 17 |
wishtack/pysynthetic | Tools to simplify and enforce type checking in Python class definitions | 15 |
jorenham/optype | A library that provides runtime-checkable type protocols for operator overloading in Python | 24 |
pvs-hd-tea/pytypes | Infer static type information from Python code by tracing execution paths | 11 |
dgrunwald/rust-cpython | Rust bindings for the Python interpreter, allowing Rust code to interact with and use Python libraries and scripts. | 1,815 |