MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / format_ports

Function format_ports

Scripts/Developer Base/Devices Finder.py:852–857  ·  view source on GitHub ↗
(port_list)

Source from the content-addressed store, hash-verified

850def presence_bar(score):
851 filled = min(20, max(0, int(score / 5)))
852 empty = 20 - filled
853 if score >= 90:
854 color = GREEN
855 elif score >= 70:
856 color = YELLOW
857 else:
858 color = CYAN
859 return "[" + ccolor(color, "█" * filled) + ccolor(DIM, "░" * empty) + "] " + ccolor(color, f"{score}%")
860

Callers 2

save_resultsFunction · 0.70
print_summaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected