flask
Package — Web FrameworkPython 3.8+Intermediate
Lightweight micro-framework for web apps and APIs with Jinja2 templates
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- Werkzeug, Jinja2, itsdangerous, click, MarkupSafe, blinker
- Install
pip install flask
Learn by Difficulty
Quick Example
python
# Install: pip install flask from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, World!" @app.route("/user/<name>") def user(name): return f"Hello, {name}!" if __name__ == "__main__": app.run(debug=True)
flask is a third-party package. Lightweight micro-framework for web apps and APIs with Jinja2 templates. Install with: pip install flask
Try in PlaygroundTags
packagewebframeworkmicrowsgibackend
Related Items
django
Package — Web Framework
Full-stack web framework with ORM, admin panel, auth, templates, migrations
fastapi
Package — Web Framework
Modern async API framework with automatic OpenAPI docs and Pydantic validation
jinja2
Package — Templates
Powerful template engine used by Flask, Ansible, etc.
gunicorn
Package — Server
Production WSGI server for Flask and Django
flask-sqlalchemy
Package — Web Auth
SQLAlchemy integration for Flask
flask-login
Package — Web Auth
User session management for Flask applications