Y
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
Ch00k
818 days ago
There is
https://github.com/gruns/furl
link
AMCMneCy
818 days ago
Also
https://github.com/aio-libs/yarl
link
4ec0755f5522
818 days ago
I use yarl as my default for this as well, it's been great to work with.
link
VagabundoP
818 days ago
This library is very pythonic.
link
pyuser583
818 days ago
Yes! That’s the one I like!
link
masklinn
818 days ago
That used to be werkzeug.urls, kinda (it certainly had a more convenient API than urllib.parse), but it was killed in Werkzeug 3.
link
pyuser583
818 days ago
I remember and miss that. But I’m not going to install werkzeug just for the url parsing.
link
d_kahneman7
818 days ago
Is it that inconvenient?
link
pyuser583
816 days ago
It’s heavy. It’s a freaking server.
link
masklinn
813 days ago
It’s a bunch of WSGI utilities. The server it provides is a thin layer over the stdlib’s HTTPServer.
link
joouha
818 days ago
You might be interested in
https://github.com/fsspec/universal_pathlib
link