Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
pip /
_internal /
cli /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
132
B
-rw-r--r--
2021-01-30 08:57
__init__.pyc
243
B
-rw-r--r--
2021-01-30 08:57
autocompletion.py
6.39
KB
-rw-r--r--
2021-01-30 08:57
autocompletion.pyc
5.32
KB
-rw-r--r--
2021-01-30 08:57
base_command.py
9.12
KB
-rw-r--r--
2021-01-30 08:57
base_command.pyc
7.84
KB
-rw-r--r--
2021-01-30 08:57
cmdoptions.py
27.95
KB
-rw-r--r--
2021-01-30 08:57
cmdoptions.pyc
24.44
KB
-rw-r--r--
2021-01-30 08:57
command_context.py
975
B
-rw-r--r--
2021-01-30 08:57
command_context.pyc
1.58
KB
-rw-r--r--
2021-01-30 08:57
main.py
2.55
KB
-rw-r--r--
2021-01-30 08:57
main.pyc
1.7
KB
-rw-r--r--
2021-01-30 08:57
main_parser.py
2.76
KB
-rw-r--r--
2021-01-30 08:57
main_parser.pyc
2.59
KB
-rw-r--r--
2021-01-30 08:57
parser.py
10.14
KB
-rw-r--r--
2021-01-30 08:57
parser.pyc
10.48
KB
-rw-r--r--
2021-01-30 08:57
progress_bars.py
8.91
KB
-rw-r--r--
2021-01-30 08:57
progress_bars.pyc
9.62
KB
-rw-r--r--
2021-01-30 08:57
req_command.py
16.07
KB
-rw-r--r--
2021-01-30 08:57
req_command.pyc
12.45
KB
-rw-r--r--
2021-01-30 08:57
spinners.py
5.38
KB
-rw-r--r--
2021-01-30 08:57
spinners.pyc
6.01
KB
-rw-r--r--
2021-01-30 08:57
status_codes.py
156
B
-rw-r--r--
2021-01-30 08:57
status_codes.pyc
407
B
-rw-r--r--
2021-01-30 08:57
Save
Rename
"""A single place for constructing and exposing the main parser """ import os import sys from pip._internal.cli import cmdoptions from pip._internal.cli.parser import ConfigOptionParser, UpdatingDefaultsHelpFormatter from pip._internal.commands import commands_dict, get_similar_commands from pip._internal.exceptions import CommandError from pip._internal.utils.misc import get_pip_version, get_prog from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Tuple __all__ = ["create_main_parser", "parse_command"] def create_main_parser(): # type: () -> ConfigOptionParser """Creates and returns the main parser for pip's CLI """ parser_kw = { 'usage': '\n%prog <command> [options]', 'add_help_option': False, 'formatter': UpdatingDefaultsHelpFormatter(), 'name': 'global', 'prog': get_prog(), } parser = ConfigOptionParser(**parser_kw) parser.disable_interspersed_args() parser.version = get_pip_version() # add the general options gen_opts = cmdoptions.make_option_group(cmdoptions.general_group, parser) parser.add_option_group(gen_opts) # so the help formatter knows parser.main = True # type: ignore # create command listing for description description = [''] + [ '{name:27} {command_info.summary}'.format(**locals()) for name, command_info in commands_dict.items() ] parser.description = '\n'.join(description) return parser def parse_command(args): # type: (List[str]) -> Tuple[str, List[str]] parser = create_main_parser() # Note: parser calls disable_interspersed_args(), so the result of this # call is to split the initial args into the general options before the # subcommand and everything else. # For example: # args: ['--timeout=5', 'install', '--user', 'INITools'] # general_options: ['--timeout==5'] # args_else: ['install', '--user', 'INITools'] general_options, args_else = parser.parse_args(args) # --version if general_options.version: sys.stdout.write(parser.version) # type: ignore sys.stdout.write(os.linesep) sys.exit() # pip || pip help -> print_help() if not args_else or (args_else[0] == 'help' and len(args_else) == 1): parser.print_help() sys.exit() # the subcommand name cmd_name = args_else[0] if cmd_name not in commands_dict: guess = get_similar_commands(cmd_name) msg = ['unknown command "{}"'.format(cmd_name)] if guess: msg.append('maybe you meant "{}"'.format(guess)) raise CommandError(' - '.join(msg)) # all the args without the subcommand cmd_args = args[:] cmd_args.remove(cmd_name) return cmd_name, cmd_args