Current Path: > > opt > alt > python33 > lib > > > python3.3 > 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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 2236 bytes | November 13 2023 21:16:39. | |
bundle.py | File | 1787 bytes | November 13 2023 21:16:39. | |
completion.py | File | 1838 bytes | November 13 2023 21:16:39. | |
freeze.py | File | 4664 bytes | November 13 2023 21:16:39. | |
help.py | File | 927 bytes | November 13 2023 21:16:39. | |
install.py | File | 13780 bytes | November 13 2023 21:16:39. | |
list.py | File | 6814 bytes | November 13 2023 21:16:39. | |
search.py | File | 4736 bytes | November 13 2023 21:16:39. | |
show.py | File | 2767 bytes | November 13 2023 21:16:39. | |
uninstall.py | File | 2203 bytes | November 13 2023 21:16:39. | |
unzip.py | File | 185 bytes | November 13 2023 21:16:39. | |
wheel.py | File | 7714 bytes | November 13 2023 21:16:39. | |
zip.py | File | 14821 bytes | November 13 2023 21:16:39. |
""" 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)
SILENT KILLER Tool