This product was not featured by Product Hunt yet.
It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).

Product Thumbnail

pyfect

Effect for Python: typed errors, services and concurrency

Open Source
Developer Tools
GitHub
Visit WebsiteSee on Product HuntGithub ⧉PyPI ⧉

Hunted byTyler GibbsTyler Gibbs

pyfect brings Effect's model to Python. A program's type says what it returns, how it can fail and which services it needs, so pyright rejects code that forgets to handle an error or provide a dependency. It has structured concurrency, layers, streams, schema, HTTP, SQL, RPC and AI providers, and it feels like Python: match on results, with-blocks for resources, and parallel effects on free-threaded 3.14. MIT licensed.

Top comment

Hi Product Hunt! I built pyfect because I wanted Effect's model in Python.

In pyfect, a program's type says three things: what it returns, how it can fail, and which services it needs. pyright then catches the mistakes that usually show up in production, like an error nobody handles or a dependency nobody provides.

  • Typed errors: failures are values in the type, not surprise exceptions.
  • Services and layers: dependencies are checked when you build the program, not discovered at runtime.
  • Structured concurrency: fibers, interruption and resource safety, including on free-threaded Python 3.14.
  • Batteries: streams, schema, an HTTP server and client, SQL, RPC and AI providers.

It follows Effect v4's semantics closely, so Effect's docs and ideas carry over. It also uses what Python has that TypeScript doesn't: match on results and tagged errors, with blocks for scopes and resources, schemas read from type annotations, exception groups for combined failures, and effects that run in parallel on free-threaded 3.14 or in subinterpreters.

Install it with pip install pyfect-dev. The docs are at pyfect.dev.

I'd love feedback, especially from anyone who has used Effect in TypeScript.

Comment highlights

No comment highlights available yet. Please check back later!

About pyfect on Product Hunt

“Effect for Python: typed errors, services and concurrency”

pyfect was submitted on Product Hunt and earned 3 upvotes and 1 comments, placing #144 on the daily leaderboard. pyfect brings Effect's model to Python. A program's type says what it returns, how it can fail and which services it needs, so pyright rejects code that forgets to handle an error or provide a dependency. It has structured concurrency, layers, streams, schema, HTTP, SQL, RPC and AI providers, and it feels like Python: match on results, with-blocks for resources, and parallel effects on free-threaded 3.14. MIT licensed.

pyfect was featured in Open Source (69.1k followers), Developer Tools (523.7k followers) and GitHub (41.5k followers) on Product Hunt. Together, these topics include over 150.1k products, making this a competitive space to launch in.

Who hunted pyfect?

pyfect was hunted by Tyler Gibbs. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.

Want to see how pyfect stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.