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.


