caproto.server.run

caproto.server.run(pvdb: Dict[str, ChannelData], *, module_name: str = 'caproto.asyncio.server', interfaces: List[str] | None = None, log_pv_names: bool = False, startup_hook: AinitHook | None = 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.