Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
ShowCommand Class Reference
Inheritance diagram for ShowCommand:
Collaboration diagram for ShowCommand:

Public Member Functions

None add_options (self)
 
int run (self, Values options, List[str] args)
 
- Public Member Functions inherited from Command
None __init__ (self, str name, str summary, bool isolated=False)
 
None handle_pip_version_check (self, Values options)
 
Tuple[Values, List[str]] parse_args (self, List[str] args)
 
int main (self, List[str] args)
 
- Public Member Functions inherited from CommandContextMixIn
Generator[None, None, Nonemain_context (self)
 
_T enter_context (self, ContextManager[_T] context_provider)
 

Data Fields

 cmd_opts
 
- Data Fields inherited from Command
 name
 
 summary
 
 parser
 
 cmd_opts
 
 tempdir_registry
 
 verbosity
 

Static Public Attributes

str usage
 
bool ignore_require_venv = True
 
- Static Public Attributes inherited from Command
str usage = ""
 
bool ignore_require_venv = False
 

Additional Inherited Members

- Protected Member Functions inherited from Command
int _main (self, List[str] args)
 
- Protected Attributes inherited from CommandContextMixIn
 _in_main_context
 
 _main_context
 

Detailed Description

Show information about one or more installed packages.

The output is in RFC-compliant mail header format.

Definition at line 15 of file show.py.

Member Function Documentation

◆ add_options()

None add_options (   self)

Reimplemented from Command.

Definition at line 26 of file show.py.

26 def add_options(self) -> None:
27 self.cmd_opts.add_option(
28 "-f",
29 "--files",
30 dest="files",
31 action="store_true",
32 default=False,
33 help="Show the full list of installed files for each package.",
34 )
35
36 self.parser.insert_option_group(0, self.cmd_opts)
37
for i

References Command.cmd_opts, CacheCommand.cmd_opts, CompletionCommand.cmd_opts, ConfigurationCommand.cmd_opts, DebugCommand.cmd_opts, DownloadCommand.cmd_opts, FreezeCommand.cmd_opts, HashCommand.cmd_opts, IndexCommand.cmd_opts, InspectCommand.cmd_opts, InstallCommand.cmd_opts, ListCommand.cmd_opts, SearchCommand.cmd_opts, ShowCommand.cmd_opts, UninstallCommand.cmd_opts, WheelCommand.cmd_opts, and i.

◆ run()

int run (   self,
Values  options,
List[str]  args 
)

Reimplemented from Command.

Definition at line 38 of file show.py.

38 def run(self, options: Values, args: List[str]) -> int:
39 if not args:
40 logger.warning("ERROR: Please provide a package name or names.")
41 return ERROR
42 query = args
43
44 results = search_packages_info(query)
45 if not print_results(
46 results, list_files=options.files, verbose=options.verbose
47 ):
48 return ERROR
49 return SUCCESS
50
51

References i, pip._internal.commands.show.print_results(), and pip._internal.commands.show.search_packages_info().

Here is the call graph for this function:

Field Documentation

◆ cmd_opts

◆ ignore_require_venv

bool ignore_require_venv = True
static

Definition at line 24 of file show.py.

◆ usage

str usage
static
Initial value:
= """
%prog [options] <package> ..."""

Definition at line 22 of file show.py.


The documentation for this class was generated from the following file: