Caution
This API is not finalized, and may change in a patch version.
unearth.link
#
Remote or local file link.
- class unearth.link.Link(url: str, comes_from: str | None = None, yank_reason: str | None = None, requires_python: str | None = None, dist_info_metadata: bool | dict[str, str] | None = None, hashes: dict[str, str] | None = None, upload_time: datetime | None = None)#
A link can refer to either a remote url or local file.
- Parameters:
url (str) – The url of the remote file.
comes_from (str|None) – The index page that contains this link
yank_reason (str|None) – The reason why this link is yanked
requires_python (str|None) – The data-python-requires attribute of this link
dist_info_metadata (str|None) – (PEP 658) The hash name and value of the dist-info metadata, or true if hash is not available
hashes (dict[str, str]|None) – The hash name and value of the link from JSON simple API
vcs (str|None) – The vcs type of this link(git/hg/svn/bzr)