OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.urllib3.util.url Namespace Reference

Data Structures

class  Url
 

Functions

def split_first (s, delims)
 
def parse_url (url)
 
def get_host (url)
 

Variables

 url_attrs
 
 NORMALIZABLE_SCHEMES
 
 PERCENT_RE
 
 SCHEME_RE
 
 URI_RE
 
 IPV4_PAT
 
 HEX_PAT
 
 LS32_PAT
 
 hex
 
 ipv4
 
 UNRESERVED_PAT
 
 IPV6_PAT
 
 ZONE_ID_PAT
 
 IPV6_ADDRZ_PAT
 
 REG_NAME_PAT
 
 TARGET_RE
 
 IPV4_RE
 
 IPV6_RE
 
 IPV6_ADDRZ_RE
 
 BRACELESS_IPV6_ADDRZ_RE
 
 ZONE_ID_RE
 
 SUBAUTHORITY_PAT
 
 SUBAUTHORITY_RE
 
 UNRESERVED_CHARS
 
 SUB_DELIM_CHARS
 
 USERINFO_CHARS
 
 PATH_CHARS
 
 QUERY_CHARS
 
 FRAGMENT_CHARS
 

Function Documentation

◆ get_host()

def pip._vendor.urllib3.util.url.get_host (   url)
Deprecated. Use :func:`parse_url` instead.

◆ parse_url()

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', ...)

◆ split_first()

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.

Variable Documentation

◆ BRACELESS_IPV6_ADDRZ_RE

BRACELESS_IPV6_ADDRZ_RE

◆ FRAGMENT_CHARS

FRAGMENT_CHARS

◆ hex

hex

◆ HEX_PAT

HEX_PAT

◆ ipv4

ipv4

◆ IPV4_PAT

IPV4_PAT

◆ IPV4_RE

IPV4_RE

◆ IPV6_ADDRZ_PAT

IPV6_ADDRZ_PAT

◆ IPV6_ADDRZ_RE

IPV6_ADDRZ_RE

◆ IPV6_PAT

IPV6_PAT

◆ IPV6_RE

IPV6_RE

◆ LS32_PAT

LS32_PAT

◆ NORMALIZABLE_SCHEMES

NORMALIZABLE_SCHEMES

◆ PATH_CHARS

PATH_CHARS

◆ PERCENT_RE

PERCENT_RE

◆ QUERY_CHARS

QUERY_CHARS

◆ REG_NAME_PAT

REG_NAME_PAT

◆ SCHEME_RE

SCHEME_RE

◆ SUB_DELIM_CHARS

SUB_DELIM_CHARS

◆ SUBAUTHORITY_PAT

SUBAUTHORITY_PAT

◆ SUBAUTHORITY_RE

SUBAUTHORITY_RE

◆ TARGET_RE

TARGET_RE

◆ UNRESERVED_CHARS

UNRESERVED_CHARS

◆ UNRESERVED_PAT

UNRESERVED_PAT

◆ URI_RE

URI_RE

◆ url_attrs

url_attrs

◆ USERINFO_CHARS

USERINFO_CHARS

◆ ZONE_ID_PAT

ZONE_ID_PAT

◆ ZONE_ID_RE

ZONE_ID_RE