GRAYBYTE WORDPRESS FILE MANAGER1473

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
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 : /opt/alt/python34/lib/python3.4/site-packages/pip/commands/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python34/lib/python3.4/site-packages/pip/commands//__init__.py
"""
Package containing all pip commands
"""


from pip.commands.bundle import BundleCommand
from pip.commands.completion import CompletionCommand
from pip.commands.freeze import FreezeCommand
from pip.commands.help import HelpCommand
from pip.commands.list import ListCommand
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.unzip import UnzipCommand
from pip.commands.zip import ZipCommand
from pip.commands.wheel import WheelCommand


commands = {
    BundleCommand.name: BundleCommand,
    CompletionCommand.name: CompletionCommand,
    FreezeCommand.name: FreezeCommand,
    HelpCommand.name: HelpCommand,
    SearchCommand.name: SearchCommand,
    ShowCommand.name: ShowCommand,
    InstallCommand.name: InstallCommand,
    UninstallCommand.name: UninstallCommand,
    UnzipCommand.name: UnzipCommand,
    ZipCommand.name: ZipCommand,
    ListCommand.name: ListCommand,
    WheelCommand.name: WheelCommand,
}


commands_order = [
    InstallCommand,
    UninstallCommand,
    FreezeCommand,
    ListCommand,
    ShowCommand,
    SearchCommand,
    WheelCommand,
    ZipCommand,
    UnzipCommand,
    BundleCommand,
    HelpCommand,
]


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

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

    for name, command_class in cmditems:
        if ignore_hidden and command_class.hidden:
            continue

        yield (name, command_class.summary)


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

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

    if close_commands:
        guess = close_commands[0]
    else:
        guess = False

    return guess


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 22:37:25
root / linksafe
0755
__pycache__
--
March 03 2024 22:37:25
root / linksafe
0755
__init__.py
2.184 KB
November 13 2023 21:20:25
root / linksafe
0644
bundle.py
1.745 KB
November 13 2023 21:20:25
root / linksafe
0644
completion.py
1.795 KB
November 13 2023 21:20:25
root / linksafe
0644
freeze.py
4.555 KB
November 13 2023 21:20:25
root / linksafe
0644
help.py
0.905 KB
November 13 2023 21:20:25
root / linksafe
0644
install.py
13.457 KB
November 13 2023 21:20:25
root / linksafe
0644
list.py
6.654 KB
November 13 2023 21:20:25
root / linksafe
0644
search.py
4.625 KB
November 13 2023 21:20:25
root / linksafe
0644
show.py
2.702 KB
November 13 2023 21:20:25
root / linksafe
0644
uninstall.py
2.151 KB
November 13 2023 21:20:25
root / linksafe
0644
unzip.py
0.181 KB
November 13 2023 21:20:25
root / linksafe
0644
wheel.py
7.533 KB
November 13 2023 21:20:25
root / linksafe
0644
zip.py
14.474 KB
November 13 2023 21:20:25
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF