pyrogenseither
pyrogenseither is a Python library that implements the Either monad for functional error handling. Drawing from Haskell and Scala patterns, it provides a clear distinction between successful results and errors without raising exceptions. The core types are Left and Right, representing failure and success, respectively. The library emphasizes composability, allowing complex workflows to be built from small, predictable transformations.
Core API and data types: Either is a generic type parameterized by the error type and the
Interoperability and typing: pyrogenseither supports Python 3.7 and later, with type hints via typing.Generic, TypeVar, and
Design and usage: The library encourages explicit handling of errors through composition rather than silent exceptions.