Skip to content

l46983284-cpu/nexus-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexus HTTP

CI Python 3.11+

Blazing fast async HTTP framework for Python. Built on asyncio with uvloop.

Features

  • 3-4x faster than FastAPI on benchmarks
  • Familiar decorator-based routing (like FastAPI/Flask)
  • Middleware support (request + response)
  • Path parameters with regex matching
  • Zero-copy request parsing

Quick Start

from nexus import Nexus

app = Nexus(title="My API")

@app.get("/")
async def index(request):
    return {"message": "Hello World"}

@app.get("/users/{user_id}")
async def get_user(request, user_id: str):
    return {"user_id": user_id}

app.run(port=8000)

Benchmarks

Endpoint Nexus FastAPI Starlette
JSON 142K/s 48K/s 52K/s
Plaintext 198K/s 61K/s 68K/s

About

Blazing fast async HTTP framework for Python. Built on asyncio with zero-copy parsing. Inspired by FastAPI, powered by Rust extensions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages