Introduction
Flask is a lightweight web framework for Python. It is designed to be simple and easy to use, yet powerful enough to build complex web applications.
Installation
Install Flask using pip:
pip install flask
Your First App
Create a file called app.py and add the following code:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
Run it with flask run and visit http://localhost:5000.