safetywrap

Error handling library

Typesafe wrappers for handling errors and absent data in Python

Fully typesafe, Rust-like Result and Option types for Python

GitHub

44 stars
4 watching
3 forks
Language: Python
last commit: about 6 years ago
Linked from 2 awesome lists

optionpythonpython3resultresult-typerustrust-optionrust-resulttypesafetyping

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
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
rustedpy/maybeProvides an Option type inspired by Rust for Python 371
dry-python/classesEnables typed polymorphism and type-safe business logic in Python without inheritance or interfaces.678
oliverbrotchie/optionalsProvides error handling and options for TypeScript and Deno similar to Rust's Option and Result enums179
vickumar1981/pyeffectsImplements functional types for handling side-effects in Python with Either, Option, Try, and Future monads.31
antonagestam/phantom-typesPhantom types enable safe parsing and validation of data by making certain states unrepresentable at compile time205
snok/flake8-type-checkingAnalyze and optimize type-checking imports in Python code to improve maintainability and runtime performance.115
hauntsaninja/useful_typesProvides commonly used data structures and protocols in Python to improve code clarity and maintainability115
kotlinisland/basedtypeshedProvides static type annotations for the Python standard library and third-party packages3
luttik/auto-optionalEnforces consistent use of optional type annotations in Python code17
wishtack/pysyntheticA set of tools that simplify Python class creation by reducing boilerplate code and enforcing type checking.15
jorenham/optypeA library that provides runtime-checkable type protocols for operator overloading in Python24
pvs-hd-tea/pytypesInfer static type information from Python code by tracing execution paths11
dgrunwald/rust-cpythonRust bindings for the Python interpreter, allowing Rust code to interact with and use Python libraries and scripts.1,815