caproto.server.run

caproto.server.run(pvdb: Dict[str, caproto._data.ChannelData], *, module_name: str = 'caproto.asyncio.server', interfaces: Optional[List[str]] = None, log_pv_names: bool = False, startup_hook: Optional[caproto.server.typing.AinitHook] = None)None[source]

Run an IOC, given its PV database dictionary and async-library module name.

Parameters
pvdbdict

The PV database dictionary.

module_namestr, optional

The async library module name. Defaults to using asyncio.

interfaceslist, optional

List of interfaces to listen on.

log_pv_namesbool, optional

Log PV names at startup.

startup_hookcoroutine, optional

Hook to call at startup with the async_lib shim.