OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | Url |
Functions | |
def | split_first (s, delims) |
def | parse_url (url) |
def | get_host (url) |
def pip._vendor.urllib3.util.url.get_host | ( | url | ) |
Deprecated. Use :func:`parse_url` instead.
def pip._vendor.urllib3.util.url.parse_url | ( | url | ) |
Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is performed to parse incomplete urls. Fields not provided will be None. This parser is RFC 3986 compliant. The parser logic and helper functions are based heavily on work done in the ``rfc3986`` module. :param str url: URL to parse into a :class:`.Url` namedtuple. Partly backwards-compatible with :mod:`urlparse`. Example:: >>> parse_url('http://google.com/mail/') Url(scheme='http', host='google.com', port=None, path='/mail/', ...) >>> parse_url('google.com:80') Url(scheme=None, host='google.com', port=80, path=None, ...) >>> parse_url('/foo?bar') Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)
def pip._vendor.urllib3.util.url.split_first | ( | s, | |
delims | |||
) |
.. deprecated:: 1.25 Given a string and an iterable of delimiters, split on the first found delimiter. Return two split parts and the matched delimiter. If not found, then the first part is the full input string. Example:: >>> split_first('foo/bar?baz', '?/=') ('foo', 'bar?baz', '/') >>> split_first('foo/bar?baz', '123') ('foo/bar?baz', '', None) Scales linearly with number of delims. Not ideal for large number of delims.
BRACELESS_IPV6_ADDRZ_RE |
FRAGMENT_CHARS |
hex |
HEX_PAT |
ipv4 |
IPV4_PAT |
IPV4_RE |
IPV6_ADDRZ_PAT |
IPV6_ADDRZ_RE |
IPV6_PAT |
IPV6_RE |
LS32_PAT |
NORMALIZABLE_SCHEMES |
PATH_CHARS |
PERCENT_RE |
QUERY_CHARS |
REG_NAME_PAT |
SCHEME_RE |
SUB_DELIM_CHARS |
SUBAUTHORITY_PAT |
SUBAUTHORITY_RE |
TARGET_RE |
UNRESERVED_CHARS |
UNRESERVED_PAT |
URI_RE |
url_attrs |
USERINFO_CHARS |
ZONE_ID_PAT |
ZONE_ID_RE |