I have an URL like this:
https://user:password@example.com/path?key=value#hash
The result should be:
https://user:???@example.com/path?key=value#hash
I could use a regex, but instead I would like to parse the URL a high level data structure, then operate on this data structure, then serializing to a string.
Is this possible with Python?