Granian: A Rust HTTP Server for Python Applications

Repositoryemmett-framework/granianTool

Granian is a high-performance HTTP server for Python applications built in Rust using Hyper and Tokio. It supports ASGI, WSGI, and RSGI interfaces, aiming to replace complex dependency stacks like Gunicorn plus Uvicorn with a single, fast binary package.

Key points

  1. Built on Rust, Hyper, and Tokio to deliver stable throughput and high concurrency.
  2. Supports HTTP/1 and HTTP/2 protocols, HTTPS, mTLS, Websockets, and direct static file serving.
  3. Offers compatibility across ASGI/3, WSGI, and RSGI application interfaces.
  4. Eliminates multi-layered Unix dependency stacks (such as Gunicorn combined with Uvicorn and http-tools).
  5. Not intended for pure-Python environments, setups using Trio or Gevent, or projects relying on unimplemented ASGI extensions.

Why it matters

Python web architectures often rely on multi-component server stacks that add operational overhead. Granian streamlines deployment into a single, cohesive Rust-powered server that excels in HTTP/2 handling and websocket concurrency.

Analysis

With more than 5,600 GitHub stars and continued maintenance into late 2026, Granian represents a mature alternative to traditional Python application servers. It is best suited for engineering teams prioritising throughput and simpler operational footprints, provided their workloads do not depend on Gevent or Trio.

Found in

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Link:Michael Kennedy

    Running Python on Rust: Granian as a Production App Server

    In Chapter 6 of his book 'Python in Production', Michael Kennedy explains the deployment of Granian as an HTTP server for Python applications. Built with Rust, Granian replaces legacy tools like uWSGI, excelling in benchmarks through consistent low tail latency and dual support for WSGI and ASGI.

    Web development· Resource

  • Repository:Kludex/uvicorn

    Uvicorn: Asynchronous ASGI Web Server for Python

    Uvicorn is a lightweight Python web server implementing the ASGI specification with support for HTTP/1.1 and WebSockets.

    10.9kstarsPython

    Web development· Tool

  • Link:uvicorn.dev

    Uvicorn: ASGI Web Server for Python

    The official documentation for Uvicorn introduces the asynchronous Python web server, which implements the ASGI specification and supports HTTP/1.1 and WebSockets.

    Web development· Tool

  • Repository:tursodatabase/turso

    Turso: Rust-Powered SQLite-Compatible In-Process SQL Database

    Turso is an open-source in-process SQL database written in Rust that provides SQLite compatibility and an experimental Postgres frontend. Dubbed the 'LLVM of databases', it compiles SQL into bytecode executed by an internal virtual machine.

    24.2kstarsRust

    Web development· Tool

  • Article:Yuchen Wu and Andrew Hauck

    Cloudflare Unveils Pingora: Rust-Based HTTP Proxy Replacing NGINX

    Cloudflare has developed Pingora, an in-house HTTP proxy written in Rust that replaces its previous NGINX infrastructure. The system serves over one trillion requests per day while using only one-third of the CPU and memory resources of the legacy stack.

    Web development· Announcement

  • Repository:xai-org/xai-sdk-python

    xAI Python SDK: Official gRPC Client for xAI Services

    The official xAI Python SDK provides a gRPC-based library to integrate with xAI's APIs. Built for Python 3.10+, it provides both synchronous and asynchronous clients for text, image, and video generation.

    566starsPython

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.