mrkeyoor.comAsk

pallets/flasktested 26 Oct 2026commit d086db8

flask review

Our Flask source run installed in 21 seconds and built in 4 seconds, but the test suite exited 1 on an async-view test asking for the async extra.

  • Install 0.5 s
  • 2.6 MB on disk
482/483passed, run exited non-zero
  • 6 dependencies
  • Build 4 s
Webevaluationupdated 17 Nov 2026
-143stars / 7d

Flask is a Python framework for building websites and HTTP services. It supplies a small web core while leaving the supporting libraries and application layout to you.

Verdict

Our Flask source run installed in 21 seconds and built in 4 seconds, but the test suite exited 1 on an async-view test asking for the async extra. Use Flask if your Python team wants control over supporting components and will maintain them. Skip it if you want bundled application conventions or a mainly async framework. Keep a working Flask app unless a specific requirement makes migration worth its cost.

Flask infographic: build websites and HTTP services with Python, plus its uses, our test result, pitfalls and who it suits
Tested 16 November 2026: the README snippet ran as written. Before that: 26 Oct: 482 of 483 source tests passed; uv install took 0.5 s.

We ran it

Lab card: what happened when we ran flask
Lab card from our sandbox run
Screenshot of flask (flask.palletsprojects.com)
flask.palletsprojects.com
Install✓ · 21s42 packages · 40 MB
Build✓ · 4s
Tests✗ · 8s482 passed · 1 failed · 4 skipped of 483 (pytest)
Known vulns0(pip-audit)
Repo236 files~18,424 lines of source · 1.8 MB · 5 CI workflows · tests dir

Answers from our run

Does flask build from source?

Dependencies installed in 21 seconds (42 packages), and the build succeeded in 4 seconds. We cloned commit d086db8 into a clean Debian container with 3 CPUs and no project-specific setup.

Do flask's tests pass?

No. The project's own test command finished in 8 seconds and reported 482 passed, 1 failed, 4 skipped (pytest).

Does flask have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use flask?

Teams that want authentication, an ORM and a prescribed application structure supplied together: the Django comparison describes the assembly work Flask leaves to you.

What are the alternatives to flask?

Django, FastAPI, Quart. Our Flask source run installed in 21 seconds and built in 4 seconds, but the test suite exited 1 on an async-view test asking for the async extra.

Setup5/5In our 2026-11-16 run it installed in 0.5 s and the README’s “A Simple Example” example ran unedited.Editor’s note: The recorded source install and build succeeded, but one async-view test failed and no corrective rerun or production deployment is recorded.
Docs2/5The 1,252-character README has no install instructions.Editor’s note: The README and official guides explain component choice, async behavior and deployment boundaries; this review has not exercised every documented path.
Community5/5Last push on 2026-10-30, 75,176 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: The sampled threads show differing developer choices and maintainer explanations, but do not measure support responsiveness or adoption rates.
Maturity4/5Latest release 3.1.3 on 2026-02-19, repository created 2010-04-06 and its test suite did not pass in our sandbox (482 of 483 passed).Editor’s note: The source checks and historical operation reports support an evaluation, but do not supply production reliability measurements for a complete application.

How we score

Discussed on

  1. hnFlask 2.0.0 has been merged into master150 points
  2. hnFlask 2 Coming soon with Async Support7 points
  3. hnFlask fails after itsdangerous module’s update5 points

Who it’s for

Python teams that want to select their own database and authentication components.
Maintainers of working Flask applications who need a concrete reason before migrating.
Developers building traditional web applications or services who can own the surrounding libraries.

Who it’s NOT for

Teams that want authentication, an ORM and a prescribed application structure supplied together: the Django comparison describes the assembly work Flask leaves to you.
Mainly async applications: Flask's own guide recommends considering Quart and explains that async views still occupy a WSGI worker.
Operators expecting the built-in development server to be their production server: Flask explicitly directs production deployments to a dedicated server or hosting platform.

Setup reality

Our October 26 source run at d086db8 installed successfully in 21 seconds with 42 dependencies recorded and 40 MB on disk; the build succeeded in 4 seconds. Tests exited 1 after 8 seconds: 482 passed, 1 failed, 4 skipped. The failing async-view test raised a RuntimeError asking for Flask's async extra. The recorded pip-audit result was 0 known vulnerabilities.

The README starts with an application and a route. Supporting services and credentials depend on the libraries your application chooses; Flask does not prescribe that stack. Our November 16 hands-on record ran the README Python example successfully with no output, in a container without published ports.

The source sandbox configuration listed 3 CPUs, 8 GB RAM and ghcr.io/astral-sh/uv:python3.12-bookworm. Actual runtime and operating-system versions require raw logs. Flask documents an async extra for async views and a separate production deployment path. The source test has no recorded rerun after the error.

Flask installed in 21 seconds and built in 4 seconds in our sandbox, but one async-view test failed. Use this Python web framework if choosing your own application components is a benefit. Skip it if you want authentication and database conventions supplied together, or if your application mainly needs an async framework. The more useful question is whether you're maintaining a working Flask system or choosing the foundation for a new one.

What people use flask for

Flask lets you build Python web applications without imposing a project layout or a particular set of supporting libraries. The Flask README makes that choice explicit: developers select the tools they want. Its small example defines an application and a route that returns a greeting. That's an approachable entry point for an internal service or a website, with a consequential choice about who will assemble the rest.

A Flask API is an HTTP service built with the Python framework; Flask also supports traditional web applications. In Giuliano Pertile's workplace evaluation after using Django, the attractive part was control over components. The cost appeared when choosing authentication libraries and organizing a growing application. His account of moving from Django is a better purchasing guide than calling Flask easy or hard without saying which part of the job you mean.

This review covers pallets/flask, the Python framework. Searches for a flask bottle, flask water bottle, flask for tea or flask for hot water concern drinkware, not this software. Searches for flask meaning, flask meaning in Hindi or flask movie require a different answer from this technical review. Those phrases occur in the supplied search suggestions; their presence says nothing about demand for a Python framework. Flask Python is the entity meant throughout this page.

Developers in the supplied records used Flask for workplace applications, maintained services and a demonstrated task list. These reports describe different jobs, and their outcomes deserve different weight. A working tutorial can show an interaction. A maintainer's account can explain an ownership burden. Neither substitutes for a controlled comparison on your own application.

Who used it What they did What came out
Giuliano Pertile and his team Tried Flask for a workplace web application after using Django An easy start and component freedom, followed by more decisions about structure and authentication. Workplace account
GitHub commenter davidism Ran a large Flask project Reported three years of operation without attributing a project issue to Flask. This is a historical anecdote. Issue #1575
Jay Krieger, presenting Learn Flask for Python Demonstrated the Task Master application Showed a task list with update and delete actions; Heroku deployment was introduced as a later tutorial step. Video transcript
X author arsitrader Maintained a Flask image background remover Reported accumulated security alerts and upgrades across Pillow, Flask, Werkzeug and rembg, alongside a UI redesign. Maintenance post

Krieger's demonstration makes the framework less abstract: the user sees tasks and actions to change them. It gives a newcomer a concrete application to understand before adding account systems or deployment configuration. For a team assessing Flask, that is a useful first lesson: follow a request through an application the reader can understand, then decide which extra components the real project needs.

The production report points in another direction. On r/Python, nicwolff says their team moved services from Flask to Quart for async with a similar API, then was moving toward Starlette for performance. Their migration account describes a reason to change frameworks. It gives a reader a requirement to investigate, rather than a reason to rewrite every functioning Flask application.

What happened when we ran it

In our November 16 hands-on run, Flask's 8-line README example exited successfully with no output. The run record identifies checkout 49943b5a9441, a fresh unprivileged container, 2 CPUs, 4 GB RAM, no secrets and no published ports. It installed the latest PyPI Flask package separately from that checkout. The recorded task was to run the example unedited.

Hands-on step Recorded outcome Evidence
Clone quickstart-lib recipe completed Clone record
Package setup Flask installed from PyPI into a fresh virtual environment Package record
Footprint and dependencies Site-packages footprint and package count were recorded separately Footprint, package count
README example Python execution exited 0 with no output Snippet record
Teardown Completed successfully Teardown record

The example creates an application and registers a route. Running those definitions can finish without printing a greeting: the README shows a separate flask run command for starting its server. The hands-on record reports Python execution, not that server command. That distinction explains the quiet result without turning it into an imagined browser session. It is a useful smoke check of the example's execution.

We ran Flask's fuller source checks on October 26 at commit d086db8. The configured sandbox had 3 CPUs and 8 GB RAM with image label ghcr.io/astral-sh/uv:python3.12-bookworm. The repository scan recorded 236 files, about 18,424 lines of source and a 1.8 MB checkout. It found five CI workflow files and a tests directory, with no Dockerfile. These measurements describe the source checkout and recorded configuration.

Source-run step Result What the result means
Install Succeeded in 21 seconds; 42 dependencies recorded; 40 MB on disk The source environment installed successfully
Build Succeeded in 4 seconds The recorded build command completed
Tests Exit 1 in 8 seconds; 482 passed, 1 failed, 4 skipped The suite did not fully pass
pip-audit 0 known vulnerabilities The recorded scan returned no known vulnerability findings

The failure was tests/test_helpers.py::TestStreaming::test_async_view. Its traceback ended with RuntimeError: Install Flask with the 'async' extra in order to use async views. The test reached Flask's async-view adapter and raised that explicit requirement. The log supports reporting the error and the requested extra. That explicit message is the useful next step for someone reproducing the failure; a successful install and build do not turn the test command into a pass.

Our harness recorded 8 seconds for the test step, while pytest's own tail reported 2.55 seconds. They describe different scopes. Its summary lists 482 passes, one failure and four skips; the supplied parser's 483 total counts the passes and failure rather than all entries including skips. Keeping the actual summary is clearer than squeezing those results into a passing percentage.

Where people get stuck: structure and template lookup

Flask leaves application organization to the developer, and Pertile found that freedom harder to manage as his application grew. His review describes authentication as another assembly task: selecting libraries and configuring a solution suited to the project. If your team dislikes making those decisions, this is a reason to choose a framework with more included conventions before the application grows.

The most instructive historical issue is template lookup. In issue #1361, users reported that templates sharing a filename across blueprints could resolve to a different blueprint's template. A blueprint groups application functionality, but the discussion explains that its templates join a shared search path. Davidism explains why the application's template folder is searched first: application authors can override templates supplied by extensions.

Report What the discussion supports Practical response
#1361: unexpected template selected Shared lookup and application overrides are intentional parts of the explanation Use distinct template paths such as foo/*.html; the closed thread is not evidence of a shipped bug fix. Discussion
#593: duplicated API error handling Esbullington described repeated handling across API blueprints; nightkr reported using a custom nesting subclass Learn the organizational problem from the thread, rather than copying its old subclass into a current project. Discussion
#825: remote hello-world deployment friction The reporter struggled with mod_wsgi; replies suggested checking Apache virtual-host loading and WSGIScriptAlias Check hosting configuration separately from application routes. The extract ends without a successful deployment report. Discussion

The template issue is easy to overlook in a feature comparison. Two modules can both contain an index.html, yet a developer's expectation of module-local lookup differs from the shared behavior explained in that thread. Naming templates by module makes that assumption visible in code review. This is useful historical design evidence, not a claim that every reported behavior remains a current defect.

Async views still occupy a WSGI worker

Flask supports async views with the async extra, and each request still occupies one worker under its documented WSGI model. Its async guide explains that concurrent I/O inside a view can be useful, while the number of requests handled at once stays the same. An async def declaration therefore answers a different question from choosing an async application server architecture.

That distinction changes the recommendation for a service built mainly around async work. Flask's own guide points to Quart for that case. It also warns that unfinished tasks spawned inside a normal async view are cancelled when the view completes, and recommends a task queue for background work. Choose the execution model before building workflows that expect a request handler to keep working after it returns.

Security work includes the libraries you chose

Our October pip-audit result was zero known vulnerabilities, while arsitrader's separate background-remover post describes alerts accumulated in an application stack. The X post says the old repository had 58 open security alerts, including three critical alerts, and names upgrades to Pillow, Flask, Werkzeug and rembg. Those are the author's reported application alerts, not our audit findings or a count of Flask vulnerabilities.

The maintenance lesson follows from Flask's component model: somebody must own upgrades for the libraries the application selects. Set that responsibility when choosing authentication, uploads and database integration. A short list of framework dependencies cannot answer whether your complete application stack is maintained. The Flask README puts library selection in the developer's hands, which makes dependency ownership part of the framework decision.

Flask vs FastAPI, Django and Quart

Flask vs FastAPI is chiefly a choice about how much API behavior you want supplied; Flask vs Django is chiefly a choice about how much application assembly you want to own. Those are editorial decision rules drawn from the attributed experiences below. They avoid pretending that an unmeasured speed ranking settles a question about authentication, validation or the cost of changing an existing application.

Candidate Evidence from the supplied accounts Pick it when
Flask Pertile valued component freedom and an easy start, but had to choose structure and authentication You want those choices and can maintain them. Workplace review
FastAPI r/Python commenter latkde would keep mature Flask projects but choose FastAPI for new ones, chiefly for incoming-data validation A new API's validation requirements justify adopting its conventions. Discussion
Django Pertile describes consistent project organization and bundled authentication and ORM as advantages Your web application needs those included components and you prefer their conventions. Comparison
Quart Nicwolff's team reported a production move from Flask for async with a similar API You want to evaluate an async framework while retaining a familiar application style. Migration account

Latkde's preference includes a useful objection to their own choice: they find Flask's application factory helpful for testable configuration, while describing configuration and application-state handling in FastAPI as awkward. Another commenter, aciokkan, prefers Flask and points out that Pydantic can be used with it. Read those opposing experiences as prompts to examine startup, resource cleanup and test configuration in your own design.

For an existing system, I'd start with the work that hurts today. If input validation is the problem, compare the cost of improving it inside Flask with the cost of migration. If the application is mainly async, Quart deserves a closer look. If a new website needs account management and a database model immediately, Django's included approach may be more appealing than selecting the pieces yourself. Those recommendations follow the work described, rather than a vote for whichever framework has the newest tutorial.

What the other reviews get wrong

GeeksforGeeks' comparison says Flask has no native async support, while Flask's official guide documents async views and their limits. The useful correction is precise: support exists with an extra, and WSGI worker behavior still matters. The comparison record also calls Flask difficult to scale because it lacks a built-in ORM or caching. Missing included components describes assembly work; it is not itself a throughput result.

Tutorialspoint's present-tense description of development under Armin Ronacher and Pocco is dated against the current README, which identifies Pallets as developing and supporting Flask. That corrects governance without disputing Ronacher's historical role. See the tutorial record and current upstream README. An old attribution is a poor basis for judging who supports a project now.

The PythonAnywhere thread titled "Flask not working anymore" is an attribution lesson. Firstchoice initially blamed Flask, then identified pytube following a YouTube change. Staff separately explained that the site's Web configuration runs the application without starting the development server in a console. The thread's correction is more useful than repeating its title as evidence of framework failure.

Questions people ask

Flask still has production users in the supplied discussion: nicwolff reports production services originally built with it, and latkde explicitly favors retaining a mature Flask project. Those accounts answer the continued-use question directly, while the choice for a new application depends on its requirements.

Is Flask still used for new production projects, or has FastAPI become the default?

The r/Python discussion contains both a developer who would choose FastAPI for new projects and one who still prefers Flask. It also contains the production migration account above. That is evidence of differing choices, not a market-share survey. Latkde and aciokkan's comments give you reasons to compare validation and configuration rather than adopt a claimed universal default.

Should I migrate a mature Flask application to FastAPI?

Latkde says they would not bother migrating an existing mature Flask project. I agree with requiring a concrete benefit first: write down the missing behavior, the cost of adding it and the cost of migration. The comment favors FastAPI for new projects at the same time, demonstrating why keeping an application and starting one are separate decisions.

Should I choose Flask, Django or FastAPI for my project?

Choose Flask when selecting application components is useful, Django when its included approach fits your web application, and consider FastAPI when its API validation conventions solve work you need to do. Pertile's Django comparison and latkde's API preference support those distinctions. Use the comparison table to turn that choice into requirements rather than a general popularity contest.

Does Django's built-in ORM, authentication and admin save enough work to outweigh Flask's flexibility?

X author PythonDvz argues for Django's bundled ORM, authentication and admin over assembling Flask or FastAPI. Pertile likewise describes more upfront authentication configuration with Flask. Those X opinions and workplace experience favor Django when the bundled choices match what you need. An application that deliberately wants different components faces a different trade-off.

Should I choose Flask or Spring Boot for backend development?

The supplied X record contains that question, without a supporting implementation comparison. Choose from your required language, integrations and deployment constraints, then gather evidence for both candidates. The question on X supplies no basis for declaring Flask or Spring Boot the winner, and our Python source run does not answer it.

What production performance improvement justifies moving from Flask or Quart to Starlette?

Nicwolff reports moving toward Starlette for performance, and commenter stetio asks for production improvement results. The discussion therefore supplies a migration motivation and an unanswered request for measurements. Require a comparison on the requests your application serves before assigning a speed benefit to that move. A framework change has to earn the engineering work it creates.

What overhead would FastAPI introduce compared with a custom Starlette stack?

The Reddit participants discuss dependency resolution and whether it matters beside database, network and authentication work. Nicwolff says their team already built validation and OpenAPI integrations, making FastAPI's additional layer less useful to them. The exchange explains that team's component choice. It gives no measured overhead figure to apply to another service.

Is FastAPI being applied to projects that do not need async or OpenAPI documentation?

The r/PythonLearning author says they default to FastAPI even for projects without async, chiefly for documentation and validation. Riklaunim replies that developers use familiar tools that fit their requirements. That discussion suggests a practical check: list which conveniences your application actually needs before treating an API framework as the default shape of every backend.

What we have not tested yet

Our records cover source setup and a README code smoke check, not a deployed application under traffic. We have not tested production throughput, request latency, memory use, authentication flows, database integration, WebSockets or any competitor on an equivalent workload. The November run supplies no published port or HTTP-response check. Its PyPI installation and the checked-out commit are separate artifacts. The October test failure has no recorded rerun with the async extra.

The image labels record sandbox configuration; actual Python and operating-system versions require raw toolchain logs. Our source-run dependency and disk figures describe that environment, not a minimal application. The audit result is a dated known-vulnerability scan, not a security guarantee. The X maintenance report identifies neither which alerts belonged to Flask nor whether every alert was resolved. The historical GitHub threads supply no present-day regression checks for template lookup, nesting, JSON behavior, file paths or Unicode downloads.

The search suggestions establish neither search volume nor rank, and the supplied community accounts establish no adoption rate. We have not measured Django's time savings, FastAPI's overhead or a Starlette migration's performance gain. For an existing app, choose the specific failing workflow or operating cost you want to improve, then compare fixing it in Flask with replacing the framework. For a new app, build the account or API-validation path you actually need before committing to the surrounding stack.

Alternatives

ProjectWhat it isPick it when
Django gh↗A Python web framework with more included application conventions.Choose it when bundled authentication and ORM conventions fit the application better than selecting those components yourself.
FastAPI gh↗A Python API framework whose incoming-data validation is a reason developers in the supplied discussion prefer it.Consider it for a new API where its validation approach solves a concrete requirement; assess migration separately for an existing Flask app.
QuartAn async Python web framework that Flask itself recommends considering for mainly async applications.Consider it when async application behavior matters and you want a framework with a similar application style.

What people are saying

  1. [github-trending] pallets/flask

Sources

  1. Flask upstream README
  2. Flask async guide
  3. Flask production deployment guide
  4. Review of Flask, From a Django Developer
  5. Flask and FastAPI developer discussion
  6. Blueprint template lookup discussion
  7. Learn Flask for Python tutorial
  8. Application maintenance reports

More web reviews