Python - Flask


What is Flask?

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.

How can we install Flask?

from flask import Flask
app = Flask(__name__)

def hello():
    return "Hello World!"

if __name__ == "__main__":
pip install Flask
// Running on http://localhost:5000/

What is included with Flask?

  1. built-in development server and debugger
  2. integrated unit testing support
  3. RESTful request dispatching
  4. uses Jinja2 templating
  5. support for secure cookies (client side sessions)
  6. 100% WSGI 1.0 compliant
  7. Unicode based
  8. extensively documented
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License