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

Class SystemCapabilities

server_capabilities.py:33–58  ·  view source on GitHub ↗

Data class representing system hardware capabilities

Source from the content-addressed store, hash-verified

31
32from logger import Logger
33
34logger = Logger(name="server_capabilities", level=logging.INFO)
35
36
37@dataclass
38class SystemCapabilities:
39 """Data class representing system hardware capabilities"""
40 architecture: str = "unknown"
41 cpu_cores: int = 1
42 total_ram_gb: float = 0.0
43 available_ram_gb: float = 0.0
44 is_64bit: bool = False
45 is_server_capable: bool = False
46 is_pi_zero: bool = False
47 kiosk_capable: bool = False
48 kiosk_block_reason: str = ""
49 traffic_capable: bool = False
50 traffic_block_reason: str = ""
51 hostname: str = ""
52 os_name: str = ""
53 os_version: str = ""
54 kernel_version: str = ""
55
56 # Feature flags
57 traffic_analysis_enabled: bool = False
58 traffic_sidecars_enabled: bool = False
59 advanced_vuln_enabled: bool = False
60 zap_enabled: bool = False
61 nuclei_enabled: bool = False

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected