Flask

Open Source

by Flask

Provided by Flask

Not yet rated
Platform
Windows / Linux / macOS
Pricing
Open Source
Account required
No
Ads
None
Last verified
22 hours ago
Developer
Flask
Official URL

Overview

Flask is a small web framework for Python. Its documentation calls it a lightweight WSGI web application framework, built so that a first app takes a few lines of code but the same project can grow into something large. It gives you routing, request and response handling, templates and sessions, and leaves choices such as the database layer and form handling to you.

It is built on a handful of related libraries that install with it: Werkzeug for the WSGI plumbing, Jinja for HTML templates, Click for the flask command-line tool, ItsDangerous for signing the session cookie, MarkupSafe for escaping and Blinker for signals. Larger apps are organised with blueprints and application factories, and there are community-maintained extensions for things Flask leaves out. View functions can be written with async and await, though the docs point to Quart for projects that are mainly asynchronous.

Flask is maintained by the Pallets project and released under the BSD 3-Clause licence. It installs with pip and the current docs say it supports Python 3.9 and newer. The built-in server is for development; the docs have a separate section on deploying to production.

Features

  • URL routing with decorators on plain Python functions
  • Jinja templates with automatic HTML escaping
  • Signed cookie-based sessions
  • Blueprints for splitting a large app into modules
  • Built-in development server with debugger and reloader
  • flask command-line tool with support for custom commands
  • Test client for sending requests to the app in tests
  • Support for async view functions
  • Community extensions for databases, forms, logins and more

Privacy

See the official privacy policy. Flask is a library you install and run yourself; no account is involved.

Pros & Cons

Pros

  • Free and open source under the BSD 3-Clause licence
  • Very little code needed for a working app
  • Thorough official documentation with a tutorial and common patterns
  • You choose your own database, forms and other components

Cons

  • No built-in database layer, admin panel or form validation
  • More decisions and wiring are left to you than in a full-stack framework
  • The built-in server is not meant for production use
  • Mainly synchronous; heavily asynchronous projects are pointed to Quart

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Python Web · Django

    Builds Python web applications with a batteries-included framework.

    Not yet rated
    Open Source Web
  • Python Web · FastAPI

    Builds Python web APIs with automatic docs and validation.

    Not yet rated
    Open Source Web
  • Python Web · Gunicorn

    Serves Python web applications in production.

    Not yet rated
    Open Source Linux