Y
Hacker News
new
|
ask
|
show
|
jobs
by
pyuser583
865 days ago
urlib.parse is a pain. We really need something more like pathlib.Path.
3 comments
Ch00k
865 days ago
There is
https://github.com/gruns/furl
link
AMCMneCy
865 days ago
Also
https://github.com/aio-libs/yarl
link
4ec0755f5522
864 days ago
I use yarl as my default for this as well, it's been great to work with.
link
VagabundoP
865 days ago
This library is very pythonic.
link
pyuser583
865 days ago
Yes! That’s the one I like!
link
masklinn
865 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
865 days ago
I remember and miss that. But I’m not going to install werkzeug just for the url parsing.
link
d_kahneman7
865 days ago
Is it that inconvenient?
link
pyuser583
863 days ago
It’s heavy. It’s a freaking server.
link
masklinn
860 days ago
It’s a bunch of WSGI utilities. The server it provides is a thin layer over the stdlib’s HTTPServer.
link
joouha
865 days ago
You might be interested in
https://github.com/fsspec/universal_pathlib
link