Shrimp 🦐 is a batteries-included zero-dependency WSGI/ASGI web-framework for Python
from shrimp import Shrimp, Request
from shrimp.response import HTMLResponse
server = Shrimp()
@server.get("/")
def index(req: Request) -> HTMLResponse:
return HTMLResponse("<h1>Hello, World!</h1>")
server.serve()
Simple HTTP server using Shrimp 🦐
To install Shrimp 🦐, run the following pip
command.
$ pip install -U shrimp-http
Shrimp 🦐 is fully made with built-in packages. There's no dependencies, hence being batteries-included.