v0.0.1
Pre-release
Pre-release
This is the initial release of SimpleAPI, a simple, unopinionated Python web framework inspired by FastAPI and Flask. So far it doesn't have any third-party dependencies.
As the name suggests, SimpleAPI is simple to use.
Here is a quick example.
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)
SimpleAPI is not production-ready. I am making it only for educational purposes.
I will add more features to hopefully to the point where it has most of the features modern web frameworks have, and maybe one day improve it enough to become a production-ready framework.
What's Changed
- Add Response class by @adhamsalama in #1
- Refactor the code by @adhamsalama in #5
- Add method for accessing request body by @adhamsalama in #6
- Add support for middleware by @adhamsalama in #9
- Rename the project SimpleAPI by @adhamsalama in #10
- Parse query params and put post request parsing back in handle_request by @adhamsalama in #11
- Add example to show how to use query params by @adhamsalama in #12
New Contributors
- @adhamsalama made their first contribution in #1
Full Changelog: https://github.com/adhamsalama/simpleapi/commits/v0.1