module documentation

Undocumented

Constant BRACELESS_IPV6_ADDRZ_RE Undocumented
Constant FRAGMENT_CHARS Undocumented
Constant HEX_PAT Undocumented
Constant IPV4_PAT Undocumented
Constant IPV4_RE Undocumented
Constant IPV6_ADDRZ_PAT Undocumented
Constant IPV6_ADDRZ_RE Undocumented
Constant IPV6_PAT Undocumented
Constant IPV6_RE Undocumented
Constant LS32_PAT Undocumented
Constant NORMALIZABLE_SCHEMES Undocumented
Constant PATH_CHARS Undocumented
Constant PERCENT_RE Undocumented
Constant QUERY_CHARS Undocumented
Constant REG_NAME_PAT Undocumented
Constant SCHEME_RE Undocumented
Constant SUB_DELIM_CHARS Undocumented
Constant TARGET_RE Undocumented
Constant UNRESERVED_CHARS Undocumented
Constant UNRESERVED_PAT Undocumented
Constant URI_RE Undocumented
Constant USERINFO_CHARS Undocumented
Constant ZONE_ID_PAT Undocumented
Constant ZONE_ID_RE Undocumented
Variable url_attrs Undocumented
Function _encode_invalid_chars Percent-encodes a URI component without reapplying onto an already percent-encoded component.
Function _encode_target Percent-encodes a request target so that there are no invalid characters
Function _idna_encode Undocumented
Function _normalize_host Undocumented
Function _remove_path_dot_segments Undocumented
Constant _HOST_PORT_PAT Undocumented
Constant _HOST_PORT_RE Undocumented
Variable _subs Undocumented
Variable _variations Undocumented
BRACELESS_IPV6_ADDRZ_RE = (source)

Undocumented

Value
re.compile(('^'+IPV6_ADDRZ_PAT[2:-2])+'$')
FRAGMENT_CHARS = (source)

Undocumented

Value
PATH_CHARS|set(['?'])

Undocumented

Value
'[0-9A-Fa-f]{1,4}'
IPV4_PAT: str = (source)

Undocumented

Value
'(?:[0-9]{1,3}\\.){3}[0-9]{1,3}'

Undocumented

Value
re.compile(('^'+IPV4_PAT)+'$')
IPV6_ADDRZ_PAT = (source)

Undocumented

Value
((('\\['+IPV6_PAT)+'(?:')+ZONE_ID_PAT)+')?\\]'
IPV6_ADDRZ_RE = (source)

Undocumented

Value
re.compile(('^'+IPV6_ADDRZ_PAT)+'$')
IPV6_PAT = (source)

Undocumented

Value
('(?:'+"""|""".join([(x % _subs) for x in _variations]))+')'

Undocumented

Value
re.compile(('^'+IPV6_PAT)+'$')
LS32_PAT = (source)

Undocumented

Value
"""(?:{hex}:{hex}|{ipv4})""".format(hex=HEX_PAT, ipv4=IPV4_PAT)
NORMALIZABLE_SCHEMES: tuple = (source)

Undocumented

Value
('http', 'https', None)
PATH_CHARS = (source)

Undocumented

Value
USERINFO_CHARS|set(['@', '/'])
PERCENT_RE = (source)

Undocumented

Value
re.compile(r'%[a-fA-F0-9]{2}')
QUERY_CHARS = (source)

Undocumented

Value
PATH_CHARS|set(['?'])
REG_NAME_PAT: str = (source)

Undocumented

Value
'(?:[^\\[\\]%:/?#]|%[a-fA-F0-9]{2})*'
SCHEME_RE = (source)

Undocumented

Value
re.compile(r'^(?:[a-zA-Z][a-zA-Z0-9\+-]*:|/)')
SUB_DELIM_CHARS = (source)

Undocumented

Value
set('!$&\'()*+,;=')
TARGET_RE = (source)

Undocumented

Value
re.compile(r'^(/[^\?#]*)(?:\?([^#]*))?(?:#.*)?$')
UNRESERVED_CHARS = (source)

Undocumented

Value
set('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~')
UNRESERVED_PAT: str = (source)

Undocumented

Value
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\\-~'

Undocumented

Value
re.compile(r'^(?:([a-zA-Z][a-zA-Z0-9\+\.-]*):)?(?://([^\\/\?#]*))?([^\?#]*)(?:\?
([^#]*))?(?:#(.*))?$',
           re.UNICODE|re.DOTALL)
USERINFO_CHARS = (source)

Undocumented

Value
(UNRESERVED_CHARS|SUB_DELIM_CHARS)|set([':'])
ZONE_ID_PAT = (source)

Undocumented

Value
('(?:%25|%)(?:['+UNRESERVED_PAT)+']|%[a-fA-F0-9]{2})+'
ZONE_ID_RE = (source)

Undocumented

Value
re.compile(('('+ZONE_ID_PAT)+')\\]$')
url_attrs: list[str] = (source)

Undocumented

def _encode_invalid_chars(component, allowed_chars, encoding='utf-8'): (source)

Percent-encodes a URI component without reapplying onto an already percent-encoded component.

def _encode_target(target): (source)

Percent-encodes a request target so that there are no invalid characters

def _idna_encode(name): (source)

Undocumented

def _normalize_host(host, scheme): (source)

Undocumented

def _remove_path_dot_segments(path): (source)

Undocumented

_HOST_PORT_PAT = (source)

Undocumented

Value
'^(%s|%s|%s)(?::0*?(|0|[1-9][0-9]{0,4}))?$'%(REG_NAME_PAT,
                                             IPV4_PAT,
                                             IPV6_ADDRZ_PAT)
_HOST_PORT_RE = (source)

Undocumented

Value
re.compile(_HOST_PORT_PAT, re.UNICODE|re.DOTALL)

Undocumented

_variations: list[str] = (source)

Undocumented