MCPcopy Create free account
hub / github.com/MorDavid/NetworkHound / get_validator

Method get_validator

validators/protocol_manager.py:52–57  ·  view source on GitHub ↗

Get a validator instance for a specific protocol

(self, protocol: str, **kwargs)

Source from the content-addressed store, hash-verified

50 return list(self.validators.keys())
51
52 def get_validator(self, protocol: str, **kwargs):
53 """Get a validator instance for a specific protocol"""
54 if protocol not in self.validators:
55 raise ValueError(f"Protocol '{protocol}' not available. Available: {list(self.validators.keys())}")
56
57 return self.validators[protocol](**kwargs)
58
59 def get_all_default_ports(self) -> Dict[str, List[int]]:
60 """Get default ports for all protocols"""

Callers 1

validate_protocolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected