Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

urlib.parse is a pain. We really need something more like pathlib.Path.




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.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: