API Reference#
Exceptions#
Exception that raised when host parsing fails. |
|
|
Exception that raised when IDNA processing fails. |
Exception that raised when IPv4 address parsing fails. |
|
Exception that raised when IPv6 address parsing fails. |
|
Exception that raised when URL parsing fails. |
URL and URLSearchParams#
|
Parses a string url against a base URL base. |
Parses and manipulates URL’s query. |
Low-level APIs#
Classes#
An implementation of the basic URL parser in Python. |
|
|
Utility class for hosts (domains and IP addresses). |
Validates a host string. |
|
|
Utility class for IDNA processing. |
|
A named tuple that represents the origin of the URL. |
|
State machine enums for the basic URL parser. |
|
A data class that represents a universal identifier. |
Validates a URL string. |
|
|
A validation status. |
Functions#
|
An alternative to |
|
Parses a string urlstring against a base URL base using the basic URL parser, and returns |
Returns a percent-decoded byte sequence after encoding with utf-8. |
|
|
Returns a percent-encoded string after encoding with encoding. |
|
An alternative to |
|
An alternative to |
|
Decodes a byte sequence with utf-8 and returns its string. |
|
Encodes a string with utf-8 and returns its byte sequence. |
|
Returns a percent-encoded string after encoding with utf-8. |