MCPcopy
hub / github.com/jtesta/ssh-audit / get_from

Method get_from

src/ssh_audit/timeframe.py:47–48  ·  view source on GitHub ↗
(self, product: str, for_server: bool = True)

Source from the content-addressed store, hash-verified

45 return self.__str__()
46
47 def get_from(self, product: str, for_server: bool = True) -> Optional[str]:
48 return self[product][0 if bool(for_server) else 2]
49
50 def get_till(self, product: str, for_server: bool = True) -> Optional[str]:
51 return self[product][1 if bool(for_server) else 3]

Callers 2

test_timeframe_objectMethod · 0.80
output_compatibilityFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_timeframe_objectMethod · 0.64