SILENT KILLERPanel

Current Path: > > usr > lib > python2.7 > site-packages > pip > > > commands


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/python2.7/site-packages/pip///commands

NameTypeSizeLast ModifiedActions
__init__.py File 2244 bytes April 21 2022 18:08:21.
__init__.pyc File 2636 bytes April 21 2022 18:08:35.
__init__.pyo File 2636 bytes April 21 2022 18:08:35.
check.py File 1382 bytes April 21 2022 18:08:21.
check.pyc File 1599 bytes April 21 2022 18:08:35.
check.pyo File 1599 bytes April 21 2022 18:08:35.
completion.py File 2453 bytes April 21 2022 18:08:21.
completion.pyc File 2894 bytes April 21 2022 18:08:35.
completion.pyo File 2894 bytes April 21 2022 18:08:35.
download.py File 7810 bytes April 21 2022 18:08:21.
download.pyc File 6173 bytes April 21 2022 18:08:35.
download.pyo File 6173 bytes April 21 2022 18:08:35.
freeze.py File 2835 bytes April 21 2022 18:08:21.
freeze.pyc File 3193 bytes April 21 2022 18:08:35.
freeze.pyo File 3193 bytes April 21 2022 18:08:35.
hash.py File 1597 bytes April 21 2022 18:08:21.
hash.pyc File 2403 bytes April 21 2022 18:08:35.
hash.pyo File 2403 bytes April 21 2022 18:08:35.
help.py File 982 bytes April 21 2022 18:08:21.
help.pyc File 1352 bytes April 21 2022 18:08:35.
help.pyo File 1352 bytes April 21 2022 18:08:35.
install.py File 18289 bytes April 21 2022 18:08:21.
install.pyc File 12098 bytes April 21 2022 18:08:35.
install.pyo File 12098 bytes April 21 2022 18:08:35.
list.py File 11369 bytes April 21 2022 18:08:21.
list.pyc File 11139 bytes April 21 2022 18:08:35.
list.pyo File 11094 bytes April 21 2022 18:08:36.
search.py File 4502 bytes April 21 2022 18:08:21.
search.pyc File 4955 bytes April 21 2022 18:08:35.
search.pyo File 4955 bytes April 21 2022 18:08:35.
show.py File 5891 bytes April 21 2022 18:08:21.
show.pyc File 5747 bytes April 21 2022 18:08:35.
show.pyo File 5747 bytes April 21 2022 18:08:35.
uninstall.py File 2884 bytes April 21 2022 18:08:21.
uninstall.pyc File 3039 bytes April 21 2022 18:08:35.
uninstall.pyo File 3039 bytes April 21 2022 18:08:35.
wheel.py File 7729 bytes April 21 2022 18:08:21.
wheel.pyc File 6366 bytes April 21 2022 18:08:35.
wheel.pyo File 6366 bytes April 21 2022 18:08:35.

Reading File: //usr/lib/python2.7/site-packages/pip///commands/uninstall.py

from __future__ import absolute_import

import pip
from pip.wheel import WheelCache
from pip.req import InstallRequirement, RequirementSet, parse_requirements
from pip.basecommand import Command
from pip.exceptions import InstallationError


class UninstallCommand(Command):
    """
    Uninstall packages.

    pip is able to uninstall most installed packages. Known exceptions are:

    - Pure distutils packages installed with ``python setup.py install``, which
      leave behind no metadata to determine what files were installed.
    - Script wrappers installed by ``python setup.py develop``.
    """
    name = 'uninstall'
    usage = """
      %prog [options] <package> ...
      %prog [options] -r <requirements file> ..."""
    summary = 'Uninstall packages.'

    def __init__(self, *args, **kw):
        super(UninstallCommand, self).__init__(*args, **kw)
        self.cmd_opts.add_option(
            '-r', '--requirement',
            dest='requirements',
            action='append',
            default=[],
            metavar='file',
            help='Uninstall all the packages listed in the given requirements '
                 'file.  This option can be used multiple times.',
        )
        self.cmd_opts.add_option(
            '-y', '--yes',
            dest='yes',
            action='store_true',
            help="Don't ask for confirmation of uninstall deletions.")

        self.parser.insert_option_group(0, self.cmd_opts)

    def run(self, options, args):
        with self._build_session(options) as session:
            format_control = pip.index.FormatControl(set(), set())
            wheel_cache = WheelCache(options.cache_dir, format_control)
            requirement_set = RequirementSet(
                build_dir=None,
                src_dir=None,
                download_dir=None,
                isolated=options.isolated_mode,
                session=session,
                wheel_cache=wheel_cache,
            )
            for name in args:
                requirement_set.add_requirement(
                    InstallRequirement.from_line(
                        name, isolated=options.isolated_mode,
                        wheel_cache=wheel_cache
                    )
                )
            for filename in options.requirements:
                for req in parse_requirements(
                        filename,
                        options=options,
                        session=session,
                        wheel_cache=wheel_cache):
                    requirement_set.add_requirement(req)
            if not requirement_set.has_requirements:
                raise InstallationError(
                    'You must give at least one requirement to %(name)s (see '
                    '"pip help %(name)s")' % dict(name=self.name)
                )
            requirement_set.uninstall(auto_confirm=options.yes)

SILENT KILLER Tool