For customising quote behaviour in some functions
D alternative to Python's ValueError
For specifying invalid sequence handling when encoding/decoding
For compatibility with Python's bytes.decode
For compatibility with Python's str.encode
Parse a query given as a string argument.
Parse a query given as a string argument.
quote('abc def') -> 'abc%20def'
Like quote(), but also replace ' ' with '+', as required for quoting HTML form values. Plus signs in the original string are escaped unless they are included in safe. It also does not have safe default to '/'.
Replace %xx escapes by their single-character equivalent. The optional encoding and errors parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method.
Like unquote(), but also replace plus signs by spaces, as required for unquoting HTML form values.
Removes any existing fragment from URL.
Encode a dict or sequence of two-element tuples into a URL query string.
Join a base URL and a possibly relative URL to form an absolute interpretation of the latter.
Parse a URL into 6 components: (scheme)://(netloc)/(path);(params)?(query)#(fragment)
Parse a URL into 5 components: (scheme)://(netloc)/(path)?(query)#(fragment)
Put a parsed URL back together again. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had redundant delimiters, e.g. a ? with an empty query (the draft states that these are equivalent).
Combine the elements of a tuple as returned by urlSplit() into a complete URL as a string. The data argument can be any five-item iterable. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had unnecessary delimiters (for example, a ? with an empty query; the RFC states that these are equivalent).
For URL query string name=value pairs
Result type for urlDefrag()
Result type for urlParse()
Result type for urlSplit()