mxcubecore.HardwareObjects.IPCServer¶
Re-export so IPCServer can be referenced as class=”IPCServer” from XML config. mxcubecore.HardwareObjectFileParser resolves an XML class= attribute as a bare module name that must live directly under mxcubecore/HardwareObjects/, with its class named the same as the module - the real implementation lives in mxcubecore/ipc/server.py, alongside the rest of the IPC layer, not under HardwareObjects/.
YAML config can (and should) reference the real module directly instead: class: mxcubecore.ipc.server.IPCServer.
- class mxcubecore.HardwareObjects.IPCServer.IPCServer(name: str)[source]¶
Bases:
HardwareObjectBeamline-configured IPC server. See IPC_FORMAT.md for the wire format and mxcubecore/ipc/whitelist.py for the whitelist rules.
- Parameters:
name (str)
- class HOConfig(*, transport: str = 'jsonrpc', host: str = '127.0.0.1', port: int = 9999, tls_cert_path: str | None = None, tls_key_path: str | None = None, broker_host: str = 'localhost', broker_port: int = 1883, topic_prefix: str = 'mxcube/ipc', tls_ca_cert_path: str | None = None, auth_token: str | None = None, allowed_methods: List[str] = [], events: List[Dict[str, Any]] = [], allow_debug_calls: bool = False, **extra_data: Any)[source]¶
Bases:
HOConfig- Parameters:
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].