On this page:
uri.encode
uri.decode
uri.path_  segment_  encode
uri.path_  segment_  decode
uri.userinfo_  encode
uri.userinfo_  decode
uri.unreserved_  encode
uri.unreserved_  decode
uri.path_  segment_  unreserved_  encode
uri.path_  segment_  unreserved_  decode

3 URI Component Parsing🔗ℹ

Encoding and decoding functions specified by RFC 3986. The encoding, in line with RFC 3986’s recommendation, represents a character as-is, if possible. The decoding allows any characters to be represented by it hex value, and it allows a character to be incorrectly represented as-is. The “unreserved” encoders convert !, *, ', (, and ) to hex representations, which is not recommended by RFC 3986 but avoids problems with some contexts.