Skip to main content

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 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 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.4.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

shrimp_http-0.1.4-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page