TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New Versions Released! Flask 2.0 with async

40 pointsby dragonshabout 4 years ago

2 comments

nickjjabout 4 years ago
Happy to see Flask 2.0+ ship.<p>I upgraded a pretty big Flask app (7,500 lines of Python code without counting test lines) that uses lots of Flask extensions, etc. and the upgrade process to Flask 2.0 was the easiest upgrade ever. Everything worked without a single line of app code that needed to change. Then I went in and started using some of the new 2.0 features.<p>There were a few deprecation warnings in a couple popular extensions but those will go away soon (I opened PRs in Flask-Login, Flask-WTF and Flask-DebugToolbar to fix them).<p>If anyone is curious I updated my example Flask + Docker + gunicorn + Celery + Redis + PostgreSQL + Webpack + TailwindCSS starter project to support Flask 2.0 here: <a href="https:&#x2F;&#x2F;github.com&#x2F;nickjj&#x2F;docker-flask-example" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nickjj&#x2F;docker-flask-example</a><p>And I&#x27;ll be updating my Build a SAAS App with Flask course for Flask 2.0 today at: <a href="https:&#x2F;&#x2F;buildasaasappwithflask.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;buildasaasappwithflask.com&#x2F;</a>. About to record some videos for it now.
评论 #27132946 未加载
laactechabout 4 years ago
Flask getting async support is a huge step for the asyncio web ecosystem in Python. I wonder how Flask&#x27;s ASGI support will evolve in parallel with Quart[1] which bills itself as the ASGI version of Flask and is maintained by a member of the Pallets team. One of the maintainers of Werkzeug even recommended using Quart[2]<p>[1] <a href="https:&#x2F;&#x2F;pgjones.gitlab.io&#x2F;quart&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pgjones.gitlab.io&#x2F;quart&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;pallets&#x2F;werkzeug&#x2F;issues&#x2F;1322#issuecomment-600926145" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pallets&#x2F;werkzeug&#x2F;issues&#x2F;1322#issuecomment...</a>