What is Flask ?
Flask is a micro framework made in python language. It is a minimalistic framework. It is a micro framework but it can build full fledged apps like other made by Django.
A simple flask server is as follows :
from flask import Flask # Importing Flask from flask
app = Flask(__name__) # Initializing Flask
app.route("/") # Routing Flask
def Home():
return "Hello World"
if __name__ == '__main__':
app.run(debug=True) # Running Flask Application
It is super simple to use. It can get full fleged framework by using libraries below,
- Flask Login for authintication.
- Flask-SQLAlchemy for ORM like Django.
- Flask-WTF for forms.
- Flask-Mail for STMP Mails.
- Celery for background tasks.
That’s it, you can read other related stuff below. 😊 Thank You