MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get

Method get

pager_lib/getmac/getmac.py:344–362  ·  view source on GitHub ↗

Core logic of the method that performs the lookup. .. warning:: If the method itself fails to function an exception will be raised! (for instance, if some command arguments are invalid, or there's an internal error with the command, or a bug in the

(self, arg)

Source from the content-addressed store, hash-verified

342
343 # TODO: automatically clean MAC on return
344 def get(self, arg): # type: (str) -> Optional[str]
345 """
346 Core logic of the method that performs the lookup.
347
348 .. warning::
349 If the method itself fails to function an exception will be raised!
350 (for instance, if some command arguments are invalid, or there's an
351 internal error with the command, or a bug in the code).
352
353 Args:
354 arg (str): What the method should get, such as an IP address
355 or interface name. In the case of default_iface methods,
356 this is not used and defaults to an empty string.
357
358 Returns:
359 Lowercase colon-separated MAC address, or None if one could
360 not be found.
361 """
362 pass # pragma: no cover
363
364 @classmethod
365 def __str__(cls): # type: () -> str

Callers 15

load_signaturesFunction · 0.45
process_lineMethod · 0.45
lookupMethod · 0.45
_migrate_from_csvMethod · 0.45
upsert_hostMethod · 0.45
export_to_csvMethod · 0.45
cache_wifi_scanMethod · 0.45
get_scan_jobMethod · 0.45
get_scan_jobsMethod · 0.45
get_interrupted_scansMethod · 0.45
get_scan_findingsMethod · 0.45

Calls

no outgoing calls