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 pers…


This content originally appeared on DEV Community and was authored by Caleb

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 app
from waffleweb.response import HTTPResponse, render

@app.route('/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

If you like the project, please consider starring it on GitHub to show support. Thanks!


This content originally appeared on DEV Community and was authored by Caleb


Print Share Comment Cite Upload Translate Updates
APA

Caleb | Sciencx (2022-07-18T21:27:13+00:00) Waffleweb: A New WSGI-Compatible Python Web Framework.. Retrieved from https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/

MLA
" » Waffleweb: A New WSGI-Compatible Python Web Framework.." Caleb | Sciencx - Monday July 18, 2022, https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/
HARVARD
Caleb | Sciencx Monday July 18, 2022 » Waffleweb: A New WSGI-Compatible Python Web Framework.., viewed ,<https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/>
VANCOUVER
Caleb | Sciencx - » Waffleweb: A New WSGI-Compatible Python Web Framework.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/
CHICAGO
" » Waffleweb: A New WSGI-Compatible Python Web Framework.." Caleb | Sciencx - Accessed . https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/
IEEE
" » Waffleweb: A New WSGI-Compatible Python Web Framework.." Caleb | Sciencx [Online]. Available: https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/. [Accessed: ]
rf:citation
» Waffleweb: A New WSGI-Compatible Python Web Framework. | Caleb | Sciencx | https://www.scien.cx/2022/07/18/waffleweb-a-new-wsgi-compatible-python-web-framework/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.