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
1•chokoswitch•1h 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!

Recommend for a Sudoku website without ad

https://lovesudoku.app/
1•TrendSpotterPro•1m ago•0 comments

Variation on Iota

https://www.toolofthought.com/posts/variation-on-iota
1•aebtebeten•3m ago•0 comments

Cataloging Failed VC-Backed Startups and Re-Evaluating Them in 2026

https://loot-drop.vercel.app/
2•manthangupta109•4m ago•0 comments

Trump Is Obsessed with Yesterday's Energy. China Is Focused on the Future

https://www.nytimes.com/2026/01/19/opinion/trump-energy-china-future.html
2•ciconia•6m ago•1 comments

Show HN: Winter swimming tracker that stores data in local storage

1•tjomk•8m ago•0 comments

Copilot Studio Extension for Visual Studio Code Is Now Generally Available

https://devblogs.microsoft.com/microsoft365dev/copilot-studio-extension-for-visual-studio-code-is...
1•rbanffy•9m ago•0 comments

A Letter to My Future Son: The Only Advice I'll Ever Give

https://twitter.com/ojhavu/status/2013174485332201804
1•gopal_virtual•11m ago•0 comments

Show HN: Cursor-helper: move projects and export chats with thinking/toolcall

https://github.com/lucifer1004/cursor-helper
1•gabriel_wu•11m ago•0 comments

Do You Trust Me? Cognitive-Affective Signatures of Trustworthiness in LLMs

https://arxiv.org/abs/2601.10719
1•7777777phil•12m ago•0 comments

I was a top 0.01% Cursor user. Here's why I switched to Claude Code 2.0

https://blog.silennai.com/claude-code
1•SilenN•12m ago•0 comments

State of ClojureScript 2025 Survey results

https://state-of-clojurescript.com/
3•adityaathalye•12m ago•0 comments

Trump Links Greenland Threats to Nobel Peace Prize Snub

https://www.bloomberg.com/news/articles/2026-01-19/trump-links-greenland-threats-to-nobel-peace-p...
4•mikaelmello•14m ago•0 comments

On coding with LLMs

https://www.abareplace.com/blog/ai/
1•abareplace•14m ago•0 comments

Vibe coding has a 12x cost problem. maintainers are done

https://webmatrices.com/post/vibe-coding-has-a-12x-cost-problem-maintainers-are-done
2•dilawar•15m ago•1 comments

When Optimization Replaces Knowing

https://www.aivojournal.org/when-optimization-replaces-knowing/
1•businessmate•16m ago•1 comments

Ask HN: How are you handling Vibe coding and Maintenance?

1•colesantiago•21m ago•1 comments

OpenAPI Generator CLI

https://github.com/OpenAPITools/openapi-generator-cli
2•mfbx9da4•29m ago•0 comments

Rising SoC 2 Compliance Signals Growing Security Expectations Across USA

1•rnkseo•29m ago•0 comments

Tesla Patent Don't multiply, add. It saves time and energy

2•daly•31m ago•2 comments

Complete Claude Code configuration: agents skills hooks commands rules MCPs

https://github.com/affaan-m/everything-claude-code
1•bzGoRust•31m ago•0 comments

Too Helpful to Be Safe: User-Mediated Attacks on Planning and Web-Use Agents

https://arxiv.org/abs/2601.10758
1•7777777phil•33m ago•0 comments

An Inauspicious Start for Bari Weiss at CBS News

https://www.nationalreview.com/2026/01/an-inauspicious-start-for-bari-weiss-at-cbs/
1•petethomas•33m ago•0 comments

Why My Friends Should Not Work in Fucking Consulting

https://twitter.com/samthebaam/status/2012587954296819757
2•samthebaam•34m ago•0 comments

Transparent Startup Experiment – Help 100 People Turn Ideas into Products

https://t9t.io/blog/en/0
1•timqian•34m ago•0 comments

XAI Colossus datacentre is using illegal, cancer-causing generators

https://www.theguardian.com/technology/2026/jan/15/elon-musk-xai-datacenter-memphis
2•soundworlds•34m ago•2 comments

Concerned about safety in your community and beyond?

https://icemap.app
2•cranberryturkey•37m ago•1 comments

Show HN: G0 – Detect LLM hallucinations with a 3-criterion grounding metric

https://huggingface.co/spaces/aphoticshaman/g0-detector
1•benthicshadow•38m ago•0 comments

Deadly sins of software engineers productivity

https://strategizeyourcareer.com/p/the-7-deadly-sins-of-software-engineers-productivity
2•birdculture•40m ago•0 comments

We Stopped CI, Abandoned Code Review, and Embraced AI Pair Programming

https://www.arcblock.io/blog/en/first-principles-of-ai-native-engineering
1•robmao•43m ago•1 comments

Show HN: AskUCP – UCP protocol explorer showing all products on Shopify

https://askucp.com/
1•possiblelion•43m ago•0 comments