Requests has it in utils.
requests.utils has stuff that was not the main goal of Requests project,so documentation is spare.
>>> import requests >>> >>> url = 'http://www.cwi.nl:80/%7Eguido/Python.html' >>> u = requests.utils.urlparse(url) >>> u ParseResult(scheme='http', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html', params='', query='', fragment='') >>> u.geturl() 'http://www.cwi.nl:80/%7Eguido/Python.html' >>> u.scheme 'http' >>> u.netloc 'www.cwi.nl:80'There no problem to use urllib.parse for a so specific task as parse url.
requests.utils has stuff that was not the main goal of Requests project,so documentation is spare.