Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 18, 2022 09:27 pm GMT

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

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To