MCPcopy
hub / github.com/scrapy/scrapy / _get_commands_dict

Function _get_commands_dict

scrapy/cmdline.py:76–84  ·  view source on GitHub ↗
(
    settings: BaseSettings, inproject: bool
)

Source from the content-addressed store, hash-verified

74
75
76def _get_commands_dict(
77 settings: BaseSettings, inproject: bool
78) -> dict[str, ScrapyCommand]:
79 cmds = _get_commands_from_module("scrapy.commands", inproject)
80 cmds.update(_get_commands_from_entry_points(inproject))
81 cmds_module = settings["COMMANDS_MODULE"]
82 if cmds_module:
83 cmds.update(_get_commands_from_module(cmds_module, inproject))
84 return cmds
85
86
87def _get_project_only_cmds(settings: BaseSettings) -> set[str]:

Callers 3

_get_project_only_cmdsFunction · 0.85
_print_commandsFunction · 0.85
executeFunction · 0.85

Calls 3

updateMethod · 0.45

Tested by

no test coverage detected