Flask Web Framework (Python)

Introduction

 
Flask is a web application framework written in Python and based on the Werkzeug toolkit (The Python WSGI Utility Library) and Jinja2 template engine, also called a micro framework because it does not force a developer to use a particular tool or library.It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions e.g
  • Contains development server and debugger
  • support for unit testing
  • RESTful request
  • Uses Jinja2 template
  • assistance for secure cookies
  • Extensions available for chrome to enhance desired features
  • Google App Engine compatibility
  • Unicode-based
Flask is considered as more Pythonic than Django (web framework) because in most cases a code is more explicit .it's easy to get started with Flask.Flask was also written several years after Django and therefore, acquire from the Python community's response.Applications that make use of the Flask framework are Pinterest, LinkedIn as well as the community web page for Flask itself.

here's the code for "hello world" Application written in Flask.
  1. from flask import Flask<br>app = Flask(__name__)  
  2. @app.route('/')  
  3. def hello_world():  
  4.        return 'Hello World!'  
  5. if __name__ == '__main__':  
  6.        app.run()  
For the complete documentation go to: