MCPcopy
hub / github.com/pirxthepilot/wtfis / ip_panel

Method ip_panel

wtfis/ui/view.py:191–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 """
190
191 def ip_panel(self) -> Optional[Panel]:
192 content: List[RenderableType] = []
193 for section in [
194 self._gen_vt_section(),
195 self._gen_geoasn_section(),
196 self._gen_shodan_section(),
197 self._gen_urlhaus_section(),
198 self._gen_ip_other_section(),
199 ]:
200 if section is not None:
201 if len(content) > 0:
202 content.append("")
203 content.append(section)
204
205 if len(content) > 0:
206 return self._gen_panel(self._gen_group(content), self.entity)
207 return None
208
209 def print(self, one_column: bool = False) -> None:
210 renderables = [

Callers 12

printMethod · 0.95
test_ip_panelMethod · 0.80
test_ip_panelMethod · 0.80
test_ip_panelMethod · 0.80
test_abuseipdb_greenMethod · 0.80
test_abuseipdb_yellowMethod · 0.80
test_ip_panelMethod · 0.80
test_ip_panelMethod · 0.80

Calls 7

_gen_vt_sectionMethod · 0.80
_gen_geoasn_sectionMethod · 0.80
_gen_shodan_sectionMethod · 0.80
_gen_urlhaus_sectionMethod · 0.80
_gen_ip_other_sectionMethod · 0.80
_gen_panelMethod · 0.80
_gen_groupMethod · 0.80

Tested by 11

test_ip_panelMethod · 0.64
test_ip_panelMethod · 0.64
test_ip_panelMethod · 0.64
test_abuseipdb_greenMethod · 0.64
test_abuseipdb_yellowMethod · 0.64
test_ip_panelMethod · 0.64
test_ip_panelMethod · 0.64