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.
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.3.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for simplestapi-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e307fb5c084d494b3db83b3c659550ad731a59b41d8efc1af76506b324a9162b |
|
MD5 | 3641f0036539772cf5d82325a5ded56c |
|
BLAKE2b-256 | fbbc7fbb783a6d1ecf81bad9ff80218cdb4cc416619c8ac326116107d3d107c5 |