GitHub

Blog

Posts about pyfect, the Effect port for Python: typed errors, services and layers, structured concurrency, and how they work under pyright.

  1. Effect in TypeScript to Python: what carries over

    • effect
    • effect-ts
    • typescript
    • python
    • pyright

    Coming from Effect TS to Python? How Effect.gen, pipe, Layer, Context services, Schema and Stream map to pyfect, and where Python makes things different.

  2. Python retry with backoff, timeouts and schedules

    • python
    • retry
    • exponential backoff
    • timeouts
    • testing
    • tenacity

    Python retry with backoff and jitter in pyfect: schedules you can combine, retries limited to typed errors, timeouts per attempt, and tests on a virtual clock.

  3. Typed errors in Python without exceptions

    • python
    • typed errors
    • pyright
    • error handling
    • result type

    Typed errors in Python that pyright checks: pyfect puts expected failures in the type, so you handle or declare them. Compared with Result types and exceptions.