Flask :
Flask is a web application framework written in Python. Flask
is based on the Werkzeug WSGI toolkit and Jinja2 temolate engine. Both are Pocco projects.
Modules :
There are many modules or frameworks which allow building your webpage using Python like :
- Bottle
- Django
- Web2py
- Cherrypy
- Flask
- Etc.
But the real popular ones are Flask
& Django
What to Use & Why ?
Django is easy to use as compared to Flask but,
Flask provides you the versatility to program with.
- WSGI :
Web Server Gateway Interface [WSGI]
has been adopted as a standard for python web application development
- Werkzueg :
It is a WSGI toolkit, which implements requests, response objects, and other utility functions.
- jinja2 :
jinja2
is a popular templating engine for python. A web templating system combines a template with a certain data source to render dynamic web pages
Simple Flask app :
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello Xs"
#main driver function
if __name__ = '__main__':
app.run()
Flask Workflow Chart :
Workflow Automation with Python and Flask
So that's it all about Flask and it's workflow comment down and share this blog with your peoples too if you find this blog valuable for you.
Thanks for reading
Happy Coding
Have a nice day :)