rfc3986 is a Python implementation of RFC 3986 including validation and authority parsing. This module also supports RFC 6874 which adds support for zone identifiers to IPv6 Addresses.

The maintainers strongly suggest using pip to install rfc3986. For example,

pip install rfc3986
python -m pip install rfc3986
python3.6 -m pip install rfc3986