MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / events_table

Method events_table

bbot/core/modules.py:672–681  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

670 return consuming_events, producing_events
671
672 def events_table(self):
673 table = []
674 header = ["Event Type", "# Consuming Modules", "# Producing Modules", "Consuming Modules", "Producing Modules"]
675 consuming_events, producing_events = self.events()
676 all_event_types = sorted(set(consuming_events).union(set(producing_events)))
677 for e in all_event_types:
678 consuming = sorted(consuming_events.get(e, []))
679 producing = sorted(producing_events.get(e, []))
680 table.append([e, len(consuming), len(producing), ", ".join(consuming), ", ".join(producing)])
681 return make_table(table, header)
682
683 def filter_modules(self, modules=None, mod_type=None):
684 if modules is None:

Callers 1

update_docsFunction · 0.80

Calls 4

eventsMethod · 0.95
setFunction · 0.85
make_tableFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected