Description
Gives Python programs a careful way to build, parse, compare, and modify URLs. It helps avoid mistakes with quoting, Unicode domains, relative links, and pieces such as scheme, host, path, query, and fragment.
Use it in applications that accept or generate web addresses. Correct URL handling matters because a small parsing mistake can send requests to the wrong place or mishandle user-provided links.