frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Pyvoy – a modern Python application server built in Envoy

https://github.com/curioswitch/pyvoy
2•chokoswitch•2w ago
I have released a new Python ASGI/WSGI application server. This may be particularly interesting to

- Python developers interested in server tech, especially if already using Envoy

- Envoy users to see use cases enabled by dynamic modules

- Rust fans to see an example of it bridging two non-Rust ecosystems, Envoy and Python

Note, this is my first real project in Rust - while I tried to study idioms while working on it, I doubt it is an example of a fully idiomatic Rust project.

I was interested in a Python app server with support for HTTP/2 trailers to be able to serve gRPC as a normal application, together with non-gRPC endpoints. When looking at existing options, I noticed a lot of complexity with wiring up sockets, flow control, and similar. Coming from Go, I am used to net/http providing fully featured, production-ready HTTP servers with very little work. But for many reasons, it's not realistic to drive Python apps from Go.

Coincidentally, Envoy released support for dynamic modules which allow running arbitrary code in Envoy, along with a Rust SDK. I thought it would be a fun experiment to see if this could actually drive a full Python server - I thought it wouldn't. But after exposing some more knobs in dynamic modules - it actually worked and pyvoy was born, a dynamic module that loads the Python interpreter to run ASGI and WSGI apps, marshaling from Envoy's HTTP filter. There's also a CLI which takes care of running Envoy with the module pointed to an app - this is definitely not net/http level of convenience, but I appreciate that complexity is only on the startup side. There is nothing needed to handle HTTP, TLS, etc in pyvoy, it is all taken care of by the battle-hardened Envoy stack, and we get everything from HTTP, including trailers and HTTP/3.

With support for trailers, pyvoy drives the gRPC protocol support on the server for connect-python (https://github.com/connectrpc/connect-python), allowing them to be served along an existing Flask or FastAPI application as needed. Notably, it is the only server that passes all of connect's conformance tests with no flakiness. It's important to note that uvicorn also passes reliably when disabling features that require HTTP/2. It's a great server when bidirectional streaming or gRPC aren't needed - unfortunately others we tried would have unreliable behavior handling client disconnects, keepalive, and such. This doesn't surprise me as I have seen quite some time ago how hard it is to implement especially HTTP/2 reliably, and I appreciate pyvoy can rely on Envoy to just take care of it.

It seems that pyvoy is a fast (always benchmark your own workload), reliable server not just for gRPC but any workload. It also can directly use any Envoy feature, and could replace a pair of Envoy + Python app server. I currently use it in production at low scale serving Django, FastAPI, and connect-python.

Happy to hear any thoughts on this project. Thanks for reading!

Logic Puzzles: Why the Liar Is the Helpful One

https://blog.szczepan.org/blog/knights-and-knaves/
1•wasabi991011•1m ago•0 comments

Optical Combs Help Radio Telescopes Work Together

https://hackaday.com/2026/02/03/optical-combs-help-radio-telescopes-work-together/
1•toomuchtodo•6m ago•1 comments

Show HN: Myanon – fast, deterministic MySQL dump anonymizer

https://github.com/ppomes/myanon
1•pierrepomes•12m ago•0 comments

The Tao of Programming

http://www.canonical.org/~kragen/tao-of-programming.html
1•alexjplant•14m ago•0 comments

Forcing Rust: How Big Tech Lobbied the Government into a Language Mandate

https://medium.com/@ognian.milanov/forcing-rust-how-big-tech-lobbied-the-government-into-a-langua...
1•akagusu•14m ago•0 comments

PanelBench: We evaluated Cursor's Visual Editor on 89 test cases. 43 fail

https://www.tryinspector.com/blog/code-first-design-tools
2•quentinrl•16m ago•1 comments

Can You Draw Every Flag in PowerPoint? (Part 2) [video]

https://www.youtube.com/watch?v=BztF7MODsKI
1•fgclue•21m ago•0 comments

Show HN: MCP-baepsae – MCP server for iOS Simulator automation

https://github.com/oozoofrog/mcp-baepsae
1•oozoofrog•25m ago•0 comments

Make Trust Irrelevant: A Gamer's Take on Agentic AI Safety

https://github.com/Deso-PK/make-trust-irrelevant
2•DesoPK•29m ago•0 comments

Show HN: Sem – Semantic diffs and patches for Git

https://ataraxy-labs.github.io/sem/
1•rs545837•30m ago•1 comments

Hello world does not compile

https://github.com/anthropics/claudes-c-compiler/issues/1
15•mfiguiere•36m ago•1 comments

Show HN: ZigZag – A Bubble Tea-Inspired TUI Framework for Zig

https://github.com/meszmate/zigzag
2•meszmate•38m ago•0 comments

Metaphor+Metonymy: "To love that well which thou must leave ere long"(Sonnet73)

https://www.huckgutman.com/blog-1/shakespeare-sonnet-73
1•gsf_emergency_6•40m ago•0 comments

Show HN: Django N+1 Queries Checker

https://github.com/richardhapb/django-check
1•richardhapb•55m ago•1 comments

Emacs-tramp-RPC: High-performance TRAMP back end using JSON-RPC instead of shell

https://github.com/ArthurHeymans/emacs-tramp-rpc
1•todsacerdoti•1h ago•0 comments

Protocol Validation with Affine MPST in Rust

https://hibanaworks.dev
1•o8vm•1h ago•1 comments

Female Asian Elephant Calf Born at the Smithsonian National Zoo

https://www.si.edu/newsdesk/releases/female-asian-elephant-calf-born-smithsonians-national-zoo-an...
3•gmays•1h ago•0 comments

Show HN: Zest – A hands-on simulator for Staff+ system design scenarios

https://staff-engineering-simulator-880284904082.us-west1.run.app/
1•chanip0114•1h ago•1 comments

Show HN: DeSync – Decentralized Economic Realm with Blockchain-Based Governance

https://github.com/MelzLabs/DeSync
1•0xUnavailable•1h ago•0 comments

Automatic Programming Returns

https://cyber-omelette.com/posts/the-abstraction-rises.html
1•benrules2•1h ago•1 comments

Why Are There Still So Many Jobs? The History and Future of Workplace Automation [pdf]

https://economics.mit.edu/sites/default/files/inline-files/Why%20Are%20there%20Still%20So%20Many%...
2•oidar•1h ago•0 comments

The Search Engine Map

https://www.searchenginemap.com
1•cratermoon•1h ago•0 comments

Show HN: Souls.directory – SOUL.md templates for AI agent personalities

https://souls.directory
1•thedaviddias•1h ago•0 comments

Real-Time ETL for Enterprise-Grade Data Integration

https://tabsdata.com
1•teleforce•1h ago•0 comments

Economics Puzzle Leads to a New Understanding of a Fundamental Law of Physics

https://www.caltech.edu/about/news/economics-puzzle-leads-to-a-new-understanding-of-a-fundamental...
3•geox•1h ago•1 comments

Switzerland's Extraordinary Medieval Library

https://www.bbc.com/travel/article/20260202-inside-switzerlands-extraordinary-medieval-library
4•bookmtn•1h ago•0 comments

A new comet was just discovered. Will it be visible in broad daylight?

https://phys.org/news/2026-02-comet-visible-broad-daylight.html
4•bookmtn•1h ago•0 comments

ESR: Comes the news that Anthropic has vibecoded a C compiler

https://twitter.com/esrtweet/status/2019562859978539342
2•tjr•1h ago•0 comments

Frisco residents divided over H-1B visas, 'Indian takeover' at council meeting

https://www.dallasnews.com/news/politics/2026/02/04/frisco-residents-divided-over-h-1b-visas-indi...
5•alephnerd•1h ago•5 comments

If CNN Covered Star Wars

https://www.youtube.com/watch?v=vArJg_SU4Lc
1•keepamovin•1h ago•1 comments