Featureful, immutable, and correct URL handling library for Python
A featureful, immutable, and correct URL for Python.
hyperlink$ python3 -c "from hyperlink import URL; url = URL.from_text('https://example.com/path?key=value'); print(url.child('newpath'))"$ python3 -c "from hyperlink import URL; url = URL.from_text('https://example.com'); print(url.replace(path=['api', 'v1', 'users']))"$ python3 -c "from hyperlink import URL; url = URL.from_text('https://user:pass@example.com:8080/path'); print(f'Host: {url.host}, Port: {url.port}')"