Skip to main content

flask-like zero denpendency web server.

Project description

erica

flask-like zero denpendency web server.

Sample

from erica import Erica, RequestHandler

app = Erica()


@app.get("/")
def hello(request: RequestHandler) -> None:
    request.response.json({"message": "Hello, World!"})


@app.post("/")
def q(request: RequestHandler) -> None:
    request.response.text(f"you posted {request.text}")


app.run()

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

erica-0.2.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

erica-0.2.0-py3-none-any.whl (3.5 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