Shrimp 🦐 is a batteries-included zero-dependency WSGI/ASGI web-framework for Python
Project description
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>")
server.serve()
Simple HTTP server using Shrimp 🦐
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.3.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for shrimp_http-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 074bf4c0cd433cce651d218ece96407a138bcc134fd717c15ff6d7707349bbf0 |
|
MD5 | 95736c8abacedfd79b559426b1b29f04 |
|
BLAKE2b-256 | 85f28a310e1c5f07495e1016e4caad5812bd2cd9772f9a2db8953e6357b5d6bb |