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
Release history Release notifications | RSS feed
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 details)
Built Distribution
erica-0.2.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file erica-0.2.0.tar.gz
.
File metadata
- Download URL: erica-0.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8094d83c17a815fffcf727d113841e58a385b8ab5874da0e10ca75747f45fe29 |
|
MD5 | 57341f83d6dec7d6f08f27250a057f67 |
|
BLAKE2b-256 | 0321bb2effa5121ee5d23d13bbd1ae8a54be66b9f695ed3fee3f49b966be4b50 |
File details
Details for the file erica-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: erica-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad4a9695bb2777045da5875f70fb75b66883ad21d4ac889ebca11b983c3e268 |
|
MD5 | e46dd21032d4965250e2835308fc8cb1 |
|
BLAKE2b-256 | 4f223203ee37f1349a7d7e31a9b641c1bdb81acaeb7ef9dfc64e67f03e57200d |