SimpleAPI is a minimalistic, unopinionated web framework for Python, inspired by FastAPI & Flask
Project description
SimpleAPI
SimpleAPI is a minimalistic, unopinionated web framework for Python, inspired by FastAPI & Flask.
This is a hobby project made for educational purposes because I want to try learning writing a web server framework.
So, this is obviously not meant for production environments.
Development of SimpleAPI is tracked at this GitHub project.
How to install:
pip install simplestapi
An example of using SimpleAPI:
from simpleapi import SimpleAPI, Request, JSONResponse
app = SimpleAPI()
@app.get("/hello")
def hello(request: Request):
"""Returns hello world in JSON format"""
return JSONResponse(message={"hello": "world"})
app.run(port=8000)
More examples can be found in /examples
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
simplestapi-0.0.5.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for simplestapi-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab20a46b7a023e2615c1eb8b7a5a16f769ad8397c58499fbd2fc404198ce4eed |
|
MD5 | acc94c9c9c27a5755bd8369332289cf4 |
|
BLAKE2b-256 | 4337493c5a15edb68f214dab84b3d12b42a39d8b7959691222ef6deec4c4b838 |