Shrimp 🦐 is a batteries-included zero-dependency WSGI/ASGI web-framework for Python
Project description
🦐 Shrimp
Shrimp 🦐 is a batteries-included zero-dependency WSGI/ASGI web-framework for 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>")
shrimp.serve()
Simple HTTP server
Requirements
To install Python with pip
, check this file.
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shrimp-http-0.1.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for shrimp_http-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 439d705a658c54b2f0e5d576724ec420d11b064f1044291ef1349c5c69dc3b82 |
|
MD5 | 5818da8305d074c4ea54e3ec27e61fed |
|
BLAKE2b-256 | 73838eb45b079e26bd270705d5167a92e8fb6ebc62a5c5688d26b26459e755a5 |