Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pyuser583
on March 16, 2024
|
parent
|
context
|
favorite
| on:
Parsing URLs in Python
urlib.parse is a pain. We really need something more like pathlib.Path.
Ch00k
on March 16, 2024
|
next
[–]
There is
https://github.com/gruns/furl
AMCMneCy
on March 16, 2024
|
parent
|
next
[–]
Also
https://github.com/aio-libs/yarl
4ec0755f5522
on March 17, 2024
|
root
|
parent
|
next
[–]
I use yarl as my default for this as well, it's been great to work with.
VagabundoP
on March 16, 2024
|
parent
|
prev
|
next
[–]
This library is very pythonic.
pyuser583
on March 16, 2024
|
parent
|
prev
|
next
[–]
Yes! That’s the one I like!
masklinn
on March 16, 2024
|
prev
|
next
[–]
That used to be werkzeug.urls, kinda (it certainly had a more convenient API than urllib.parse), but it was killed in Werkzeug 3.
pyuser583
on March 16, 2024
|
parent
|
next
[–]
I remember and miss that. But I’m not going to install werkzeug just for the url parsing.
d_kahneman7
on March 16, 2024
|
root
|
parent
|
next
[–]
Is it that inconvenient?
pyuser583
on March 18, 2024
|
root
|
parent
|
next
[–]
It’s heavy. It’s a freaking server.
masklinn
on March 21, 2024
|
root
|
parent
|
next
[–]
It’s a bunch of WSGI utilities. The server it provides is a thin layer over the stdlib’s HTTPServer.
joouha
on March 16, 2024
|
prev
[–]
You might be interested in
https://github.com/fsspec/universal_pathlib
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: