Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (24 loc) · 1.24 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.24 KB

🦐 Shrimp

Shrimp 🦐 is a batteries-included zero-dependency WSGI/ASGI web-framework for Python Python

Example

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 🦐

Requirements

Install 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.