SILENT KILLERPanel

Current Path: > > usr > lib > python3.8 > site-packages > > pip > _internal > models


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/lib/python3.8/site-packages//pip/_internal/models

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 63 bytes October 17 2023 18:30:24.
candidate.py File 1277 bytes October 17 2023 18:30:24.
format_control.py File 2592 bytes October 17 2023 18:30:24.
index.py File 1060 bytes October 17 2023 18:30:24.
link.py File 6860 bytes October 17 2023 18:30:24.
search_scope.py File 3971 bytes October 17 2023 18:30:24.
selection_prefs.py File 1908 bytes October 17 2023 18:30:24.
target_python.py File 3820 bytes October 17 2023 18:30:24.

Reading File: //usr/lib/python3.8/site-packages//pip/_internal/models/candidate.py

# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False

from pip._vendor.packaging.version import parse as parse_version

from pip._internal.utils.models import KeyBasedCompareMixin
from pip._internal.utils.typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:
    from pip._vendor.packaging.version import _BaseVersion
    from pip._internal.models.link import Link
    from typing import Any


class InstallationCandidate(KeyBasedCompareMixin):
    """Represents a potential "candidate" for installation.
    """

    def __init__(self, project, version, link):
        # type: (Any, str, Link) -> None
        self.project = project
        self.version = parse_version(version)  # type: _BaseVersion
        self.link = link

        super(InstallationCandidate, self).__init__(
            key=(self.project, self.version, self.link),
            defining_class=InstallationCandidate
        )

    def __repr__(self):
        # type: () -> str
        return "<InstallationCandidate({!r}, {!r}, {!r})>".format(
            self.project, self.version, self.link,
        )

    def __str__(self):
        return '{!r} candidate (version {} at {})'.format(
            self.project, self.version, self.link,
        )

SILENT KILLER Tool