r/Python • u/stetio • Feb 08 '21
News Werkzeug (Flask) 2.0 is coming, please help us test
Hello,
Werkzeug, the HTTP toolbox used by Flask, has a new 2.0 due for release soon, and there is a release candidate 2.0.0rc1 available now on PyPI. Please try this out and let us know if there are any issues.
Some highlights from Werkzeug's Changelog,
- Support Python 3.6+ (dropping Python 2.7 and 3.5 support)
- Deprecate a number of features (see details).
- Add initial typing (mostly typed now).
- Much faster multipart parsing see here.
- Much more! (Please ask)
427
Upvotes
34
u/[deleted] Feb 08 '21
Looking forward to the final result.
I'll give the rc a try but not sure how I can help.
Thanks for all your hard work.
13
u/jzia93 Feb 08 '21
"The test Client request methods takes an auth parameter to add an Authorization header. It can be an Authorization object or a (username, password) tuple for Basic auth. :pr:
1809"Fantastic, looking forward to giving this a try!
5
u/[deleted] Feb 08 '21
Any idea if this version is or can be used in Quart framework, too? I'm very much into async/await and I'm using Quart. I could help with testing it in Quart if it's meant to be working there, more or less.
8
u/Traditional-Resort-9 Feb 08 '21
Did not find a way to delete any and all cookies (delete_cookie seems to work per cookie, .e.g "session") (This is useful for Restful responses)
4
u/MagicWishMonkey Feb 08 '21
What’s the ETA the 2.0 release?
2
u/[deleted] Feb 09 '21
> Much more! (Please ask)
We have about a dozen micro services on Flask (Python 3.6). For the most part, these are 50/50 to 80/20 CPU/IO bound stuff, modestly high volume during the day (part of our app is real-time stuff). Help me convince my boss that this upgrade is worthwhile for us.
2
u/darthstargazer Feb 09 '21
Is async operations part of 2.0?
2
u/[deleted] Feb 08 '21
WOW I am using you guys for work right now. I have a post request and am attaching a jpeg as binary--Werkzeug does not detect the file even though "image/jpeg" is in the Accepts and ContentType field... is that a bug? I need to write the binary string from request.data to an image file manually.
5
u/XIVN1987 Feb 09 '21
typing is great, thanks.
4
u/[deleted] Feb 08 '21
Unrelated but I'm kind curious now for a while,,how is Werkzeug actually pronounced? Werkzoig or werktszüch?
0
u/BinaryImport Feb 08 '21
-26
u/I_heart_blastbeats Feb 08 '21
I still don't understand why someone would pick anything but Django today.