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.
- from flask import Flask<br>app = Flask(__name__)
- @app.route('/')
- def hello_world():
- return 'Hello World!'
- if __name__ == '__main__':
- app.run()
For the complete documentation go to: