Hacker News new | ask | show | jobs
by pyuser583 818 days ago
urlib.parse is a pain. We really need something more like pathlib.Path.
3 comments

I use yarl as my default for this as well, it's been great to work with.
This library is very pythonic.
Yes! That’s the one I like!
That used to be werkzeug.urls, kinda (it certainly had a more convenient API than urllib.parse), but it was killed in Werkzeug 3.
I remember and miss that. But I’m not going to install werkzeug just for the url parsing.
Is it that inconvenient?
It’s heavy. It’s a freaking server.
It’s a bunch of WSGI utilities. The server it provides is a thin layer over the stdlib’s HTTPServer.