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

Method get_validator_info

validators/base_validator.py:141–148  ·  view source on GitHub ↗

Get information about this validator

(cls)

Source from the content-addressed store, hash-verified

139
140 @classmethod
141 def get_validator_info(cls):
142 """Get information about this validator"""
143 return {
144 'name': cls.__name__,
145 'protocol': cls.__name__.replace('Validator', '').upper(),
146 'description': cls.__doc__ or f"{cls.__name__} protocol validator",
147 'default_ports': cls().get_default_ports() if hasattr(cls, 'get_default_ports') else []
148 }
149
150
151# Example template for creating new validators

Callers

nothing calls this directly

Calls 1

get_default_portsMethod · 0.45

Tested by

no test coverage detected