DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Waffleweb: A New WSGI-Compatible Python Web Framework.
berserkware
berserkware

Posted on

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
Enter fullscreen mode Exit fullscreen mode

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()
Enter fullscreen mode Exit fullscreen mode

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!

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.