An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
July 18, 2022 09:27 pm GMT
Original Link: https://dev.to/berserkware/waffleweb-a-new-wsgi-compatible-python-web-framework-2kll
Waffleweb: A New WSGI-Compatible Python Web Framework.
Waffleweb is a new Python web framework. It is WSGI-Compatible and highly customizable. Since it is in alpha, developments and changes are common.
It is lightweight and highly extensible. It is pretty basic, but it has everything you need to make personal websites, APIs, social platforms and much much more
I have been working it for a while now, and I plan to continue developing it.
You can find it at the Waffleweb GitHub.
Installation
You can install Waffleweb with pip.
pip install waffleweb
A Simple Example
from waffleweb import appfrom waffleweb.response import HTTPResponse, [email protected]('/index')def index(request): return HTTPResponse(request, 'index')@app.route('/article/<id:int>/<name:str>')def articleView(request, id, name): return render(request, 'articleView.html', context=findArticle(id, name))app.run()
As you can see it is extremely easy to set up a simple website.
Other Links
- Documentation- https://waffleweb.readthedocs.io
- Changes - https://berserkware.github.io/waffleweb/changes
- Source Code - https://github.com/Berserkware/waffleweb
- Website - https://berserkware.github.io/waffleweb
- Discord - https://discord.gg/U6HjwhkcGr
If you like the project, please consider starring it on GitHub to show support. Thanks!
Original Link: https://dev.to/berserkware/waffleweb-a-new-wsgi-compatible-python-web-framework-2kll
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To