Flask is a web application framework written in Python. It is a microframework without an ORM (Object Relational Manager) or similar features, and as such, has a compact and simple-to-extend core. Flask is based on the Werkzeg WSGI toolkit and the Jinja2 template engine. The Web Server Gateway Interface (Web Server Gateway Interface, WSGI) has been used as a standard for Python web application development. The template engine and url routing are only two of its many fascinating features.
Werkzeug(toolkit) implements:
jinja2:
<h1>Hello {{ username }}</h1>
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!
if __name__ == '__main__':
app.run()