Coding

Flask – lightweight web application microframework

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
FlaskHugely popular microframework based on Werkzeug and Jinja2
FastAPIWeb framework for building APIs
StarletteLightweight ASGI framework/toolkit
aiohttpAsynchronous HTTP client/server for asyncio and Python
SanicWeb server and web framework
FalconBuild cloud APIs, smart proxies, and app backends
QuartWeb microframework based on Asyncio
web.pyMinimalist Python web framework for building simple web apps
PyramidStart small, finish big, stay finished framework
LitestarPowerful, lightweight, and flexible ASGI framework
BottleFast, simple and lightweight WSGI micro web framework
RobynPython web framework designed for high performance
ChalicePython Serverless Microframework for AWS
CherryPyMature, minimalist, Python object-oriented web framework
TurboGearsHybrid framework acting as a Full Stack framework or Microframework
MicrodotSmall web framework for Python and MicroPython
FastHTMLHTML-first Python framework for interactive web applications
BlackSheepAsynchronous Python web framework
APIFlaskFlask-based API framework with validation and OpenAPI docs
MuffinLightweight asynchronous ASGI framework for Python web apps
QuixoteAimed at sites where complex programming is required
KleinMicro-framework for developing production-ready web services with Python
circuitsLightweight event driven application framework
MicroPieUltra-micro ASGI Python web framework
ClasticFunctional web framework

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted