finds.dev← search

// the find

cirospaciari/socketify.py

★ 1,715 · Python · MIT · updated Sep 2025

Bringing Http/Https and WebSockets High Performance servers for PyPy3 and Python3

socketify.py wraps uWebSockets (the same C library Bun uses) to give Python and PyPy3 a genuinely fast HTTP/WebSocket server. It supports ASGI and WSGI so you can drop it under an existing Django or Falcon app, or write native socketify handlers for maximum throughput. The target audience is anyone who has hit CPython's async I/O ceiling and doesn't want to rewrite in Go or Node.

The uWebSockets foundation is real — the benchmark numbers are plausible and the TechEmpower results are verifiable. PyPy3 support is a meaningful differentiator; most Python web servers treat PyPy as an afterthought. Built-in pub/sub on WebSockets saves the usual Redis dependency for simple broadcast cases. The ASGI/WSGI compatibility layers mean you can benchmark against an existing app without rewriting anything.

Shipping prebuilt `.so`/`.dll` binaries in the repo is a supply-chain red flag — there is no reproducible build step for most users, and you are trusting whatever was compiled and committed. The 'upcoming features' list has been stagnant in spirit: libuv fetch, full asyncio integration, HPy, and HTTP/3 have been listed as roadmap items for years with no sign of landing. Debugging anything that goes wrong inside the CFFI boundary is painful — stack traces stop at the Python/C interface and you are on your own. The single maintainer with a commercial consulting pitch attached is a concentration risk; the fork count (62) relative to stars (1715) suggests people are curious but not shipping it.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →