GRAYBYTE WORDPRESS FILE MANAGER6747

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/python2.7/site-packages/pip/commands/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/python2.7/site-packages/pip/commands//__init__.py
"""
Package containing all pip commands
"""
from __future__ import absolute_import

from pip.commands.completion import CompletionCommand
from pip.commands.download import DownloadCommand
from pip.commands.freeze import FreezeCommand
from pip.commands.hash import HashCommand
from pip.commands.help import HelpCommand
from pip.commands.list import ListCommand
from pip.commands.check import CheckCommand
from pip.commands.search import SearchCommand
from pip.commands.show import ShowCommand
from pip.commands.install import InstallCommand
from pip.commands.uninstall import UninstallCommand
from pip.commands.wheel import WheelCommand


commands_dict = {
    CompletionCommand.name: CompletionCommand,
    FreezeCommand.name: FreezeCommand,
    HashCommand.name: HashCommand,
    HelpCommand.name: HelpCommand,
    SearchCommand.name: SearchCommand,
    ShowCommand.name: ShowCommand,
    InstallCommand.name: InstallCommand,
    UninstallCommand.name: UninstallCommand,
    DownloadCommand.name: DownloadCommand,
    ListCommand.name: ListCommand,
    CheckCommand.name: CheckCommand,
    WheelCommand.name: WheelCommand,
}


commands_order = [
    InstallCommand,
    DownloadCommand,
    UninstallCommand,
    FreezeCommand,
    ListCommand,
    ShowCommand,
    CheckCommand,
    SearchCommand,
    WheelCommand,
    HashCommand,
    CompletionCommand,
    HelpCommand,
]


def get_summaries(ordered=True):
    """Yields sorted (command name, command summary) tuples."""

    if ordered:
        cmditems = _sort_commands(commands_dict, commands_order)
    else:
        cmditems = commands_dict.items()

    for name, command_class in cmditems:
        yield (name, command_class.summary)


def get_similar_commands(name):
    """Command name auto-correct."""
    from difflib import get_close_matches

    name = name.lower()

    close_commands = get_close_matches(name, commands_dict.keys())

    if close_commands:
        return close_commands[0]
    else:
        return False


def _sort_commands(cmddict, order):
    def keyfn(key):
        try:
            return order.index(key[1])
        except ValueError:
            # unordered items should come last
            return 0xff

    return sorted(cmddict.items(), key=keyfn)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 20:23:47
root / root
0755
__init__.py
2.191 KB
April 21 2022 18:08:21
root / root
0644
__init__.pyc
2.574 KB
April 21 2022 18:08:35
root / root
0644
__init__.pyo
2.574 KB
April 21 2022 18:08:35
root / root
0644
check.py
1.35 KB
April 21 2022 18:08:21
root / root
0644
check.pyc
1.562 KB
April 21 2022 18:08:35
root / root
0644
check.pyo
1.562 KB
April 21 2022 18:08:35
root / root
0644
completion.py
2.396 KB
April 21 2022 18:08:21
root / root
0644
completion.pyc
2.826 KB
April 21 2022 18:08:35
root / root
0644
completion.pyo
2.826 KB
April 21 2022 18:08:35
root / root
0644
download.py
7.627 KB
April 21 2022 18:08:21
root / root
0644
download.pyc
6.028 KB
April 21 2022 18:08:35
root / root
0644
download.pyo
6.028 KB
April 21 2022 18:08:35
root / root
0644
freeze.py
2.769 KB
April 21 2022 18:08:21
root / root
0644
freeze.pyc
3.118 KB
April 21 2022 18:08:35
root / root
0644
freeze.pyo
3.118 KB
April 21 2022 18:08:35
root / root
0644
hash.py
1.56 KB
April 21 2022 18:08:21
root / root
0644
hash.pyc
2.347 KB
April 21 2022 18:08:35
root / root
0644
hash.pyo
2.347 KB
April 21 2022 18:08:35
root / root
0644
help.py
0.959 KB
April 21 2022 18:08:21
root / root
0644
help.pyc
1.32 KB
April 21 2022 18:08:35
root / root
0644
help.pyo
1.32 KB
April 21 2022 18:08:35
root / root
0644
install.py
17.86 KB
April 21 2022 18:08:21
root / root
0644
install.pyc
11.814 KB
April 21 2022 18:08:35
root / root
0644
install.pyo
11.814 KB
April 21 2022 18:08:35
root / root
0644
list.py
11.103 KB
April 21 2022 18:08:21
root / root
0644
list.pyc
10.878 KB
April 21 2022 18:08:35
root / root
0644
list.pyo
10.834 KB
April 21 2022 18:08:36
root / root
0644
search.py
4.396 KB
April 21 2022 18:08:21
root / root
0644
search.pyc
4.839 KB
April 21 2022 18:08:35
root / root
0644
search.pyo
4.839 KB
April 21 2022 18:08:35
root / root
0644
show.py
5.753 KB
April 21 2022 18:08:21
root / root
0644
show.pyc
5.612 KB
April 21 2022 18:08:35
root / root
0644
show.pyo
5.612 KB
April 21 2022 18:08:35
root / root
0644
uninstall.py
2.816 KB
April 21 2022 18:08:21
root / root
0644
uninstall.pyc
2.968 KB
April 21 2022 18:08:35
root / root
0644
uninstall.pyo
2.968 KB
April 21 2022 18:08:35
root / root
0644
wheel.py
7.548 KB
April 21 2022 18:08:21
root / root
0644
wheel.pyc
6.217 KB
April 21 2022 18:08:35
root / root
0644
wheel.pyo
6.217 KB
April 21 2022 18:08:35
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF