MCPcopy Create free account
hub / github.com/secdev/scapy / _depcheck

Method _depcheck

scapy/utils.py:3600–3608  ·  view source on GitHub ↗

Check that all dependencies are installed

(self)

Source from the content-addressed store, hash-verified

3598 """
3599
3600 def _depcheck(self) -> None:
3601 """
3602 Check that all dependencies are installed
3603 """
3604 try:
3605 import prompt_toolkit # noqa: F401
3606 except ImportError:
3607 # okay we lie but prompt_toolkit is a dependency...
3608 raise ImportError("You need to have IPython installed to use the CLI")
3609
3610 # Okay let's do nice code
3611 commands: Dict[str, Callable[..., Any]] = {}

Callers 2

__init__Method · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected