Flask is a lightweight web application framework built around the Werkzeug WSGI toolkit and Jinja template engine. It provides the components needed to handle HTTP requests and generate responses without imposing a particular database, form library or application architecture.
The framework is designed to support both small applications and more elaborate services. A simple website can be implemented using a handful of routes, while larger projects can be divided into reusable components with their own endpoints, templates and static resources.
Flask’s request and application contexts make information about the current request available to application code. Its extension ecosystem provides optional integration with databases, authentication systems and other services.
This is free and open source software.
Key Features
- URL routing with dynamic path parameters, HTTP method handling and URL generation.
- Jinja template integration with inheritance, filters, macros and automatic HTML escaping.
- Blueprints for dividing applications into reusable components with separate routes and resources.
- Request and application contexts for accessing request data, configuration and application-specific objects.
- Signed cookie-based sessions for retaining information between requests.
- Customisable error handlers and support for returning HTML, JSON and other response formats.
- Class-based views for implementing reusable request handlers.
- Integrated development server, interactive debugger and command-line interface.
- Test client and testing utilities for exercising endpoints without a running external server.
- Configuration management through application settings, environment variables and configuration objects.
- Request hooks, response processing and support for WSGI middleware.
- Extension ecosystem covering authentication, database integration, forms and administration interfaces.
- Support for asynchronous view functions when the appropriate dependencies are available.
Website: flask.palletsprojects.com
Support:
Developer: Armin Ronacher and contributors
License: BSD 3-Clause ‘New’ or ‘Revised’ License
Flask is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Best Python Micro Frameworks | |
|---|---|
| Flask | Hugely popular microframework based on Werkzeug and Jinja2 |
| FastAPI | Web framework for building APIs |
| Starlette | Lightweight ASGI framework/toolkit |
| aiohttp | Asynchronous HTTP client/server for asyncio and Python |
| Sanic | Web server and web framework |
| Falcon | Build cloud APIs, smart proxies, and app backends |
| Quart | Web microframework based on Asyncio |
| web.py | Minimalist Python web framework for building simple web apps |
| Pyramid | Start small, finish big, stay finished framework |
| Litestar | Powerful, lightweight, and flexible ASGI framework |
| Bottle | Fast, simple and lightweight WSGI micro web framework |
| Robyn | Python web framework designed for high performance |
| Chalice | Python Serverless Microframework for AWS |
| CherryPy | Mature, minimalist, Python object-oriented web framework |
| TurboGears | Hybrid framework acting as a Full Stack framework or Microframework |
| Microdot | Small web framework for Python and MicroPython |
| FastHTML | HTML-first Python framework for interactive web applications |
| BlackSheep | Asynchronous Python web framework |
| APIFlask | Flask-based API framework with validation and OpenAPI docs |
| Muffin | Lightweight asynchronous ASGI framework for Python web apps |
| Quixote | Aimed at sites where complex programming is required |
| Klein | Micro-framework for developing production-ready web services with Python |
| circuits | Lightweight event driven application framework |
| MicroPie | Ultra-micro ASGI Python web framework |
| Clastic | Functional web framework |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.