|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, url, comes_from=None, requires_python=None, yanked_reason=None, cache_link_parsing=True) |
| def | __str__ (self) |
| def | __repr__ (self) |
| def | url (self) |
| def | filename (self) |
| def | file_path (self) |
| def | scheme (self) |
| def | netloc (self) |
| def | path (self) |
| def | splitext (self) |
| def | ext (self) |
| def | url_without_fragment (self) |
| def | egg_fragment (self) |
| def | subdirectory_fragment (self) |
| def | hash (self) |
| def | hash_name (self) |
| def | show_url (self) |
| def | is_file (self) |
| def | is_existing_dir (self) |
| def | is_wheel (self) |
| def | is_vcs (self) |
| def | is_yanked (self) |
| def | has_hash (self) |
| def | is_hash_allowed (self, hashes) |
Public Member Functions inherited from KeyBasedCompareMixin | |
| def | __init__ (self, key, defining_class) |
| def | __hash__ (self) |
| def | __lt__ (self, other) |
| def | __le__ (self, other) |
| def | __gt__ (self, other) |
| def | __ge__ (self, other) |
| def | __eq__ (self, other) |
Data Fields | |
| comes_from | |
| requires_python | |
| yanked_reason | |
| cache_link_parsing | |
| scheme | |
| ext | |
Represents a parsed link from a Package Index's simple URL
| def __init__ | ( | self, | |
| url, | |||
comes_from = None, |
|||
requires_python = None, |
|||
yanked_reason = None, |
|||
cache_link_parsing = True |
|||
| ) |
:param url: url of the resource pointed to (href of the link)
:param comes_from: instance of HTMLPage where the link was found,
or string.
:param requires_python: String containing the `Requires-Python`
metadata field, specified in PEP 345. This may be specified by
a data-requires-python attribute in the HTML link tag, as
described in PEP 503.
:param yanked_reason: the reason the file has been yanked, if the
file has been yanked, or None if the file hasn't been yanked.
This is the value of the "data-yanked" attribute, if present, in
a simple repository HTML link. If the file has been yanked but
no reason was provided, this should be the empty string. See
PEP 592 for more information and the specification.
:param cache_link_parsing: A flag that is used elsewhere to determine
whether resources retrieved from this link
should be cached. PyPI index urls should
generally have this set to False, for
example.
| def __repr__ | ( | self | ) |
| def __str__ | ( | self | ) |
| def egg_fragment | ( | self | ) |
| def ext | ( | self | ) |
| def file_path | ( | self | ) |
| def filename | ( | self | ) |
| def has_hash | ( | self | ) |
| def hash | ( | self | ) |
| def hash_name | ( | self | ) |
| def is_existing_dir | ( | self | ) |
| def is_file | ( | self | ) |
| def is_hash_allowed | ( | self, | |
| hashes | |||
| ) |
Return True if the link has a hash and it is allowed.
| def is_vcs | ( | self | ) |
| def is_wheel | ( | self | ) |
| def is_yanked | ( | self | ) |
| def netloc | ( | self | ) |
This can contain auth information.
| def path | ( | self | ) |
| def scheme | ( | self | ) |
| def show_url | ( | self | ) |
| def splitext | ( | self | ) |
| def subdirectory_fragment | ( | self | ) |
| def url | ( | self | ) |
| def url_without_fragment | ( | self | ) |
| cache_link_parsing |
| comes_from |
| ext |
| requires_python |
| scheme |
| yanked_reason |