poly_lithic.src.interfaces packageπ
Submodulesπ
- poly_lithic.src.interfaces.BaseInterface module
- poly_lithic.src.interfaces.fastapi_interface module
VariableStructSubmitRequestGetRequestJobInputJobsRequestSimpleFastAPIInterfaceServerSimpleFastAPIInterfaceServer.get()SimpleFastAPIInterfaceServer.put()SimpleFastAPIInterfaceServer.get_many()SimpleFastAPIInterfaceServer.put_many()SimpleFastAPIInterfaceServer.get_inputs()SimpleFastAPIInterfaceServer.get_outputs()SimpleFastAPIInterfaceServer.monitor()SimpleFastAPIInterfaceServer.close()
- poly_lithic.src.interfaces.file_interface module
- poly_lithic.src.interfaces.k2eg_interface module
- poly_lithic.src.interfaces.p4p_alarm_constants module
- poly_lithic.src.interfaces.p4p_alarm_helpers module
- poly_lithic.src.interfaces.p4p_interface module
Module contentsπ
Interfaces module.
- class poly_lithic.src.interfaces.BaseInterface(config)[source]π
Bases:
ABC
- class poly_lithic.src.interfaces.h5dfInterface(config)[source]π
Bases:
BaseDataInterface
- class poly_lithic.src.interfaces.SimplePVAInterface(config)[source]π
Bases:
BaseInterface
- class poly_lithic.src.interfaces.SimplePVAInterfaceServer(config)[source]π
Bases:
SimplePVAInterfaceSimple PVA integfcae with a server rather than just a client, this will host the PVs provided in the config
- class poly_lithic.src.interfaces.K2EGInterface(config)[source]π
Bases:
BaseInterface
- class poly_lithic.src.interfaces.SimpleFastAPIInterfaceServer(config)[source]π
Bases:
BaseInterfaceHTTP interface backed by FastAPI with an in-memory job queue.
Registered as
"fastapi_server"so it can be referenced in the YAML config astype: "interface.fastapi_server".- Parameters:
config (dict)
- get_many(data, **kwargs)[source]π
Dual-return method.
consume_jobs=Truewith queued jobs β dequeue all, mark running, return a list of dicts (one per job with input snapshots).Otherwise β return a single dict mapping requested names to values.
- Return type:
dict|list[dict]
- put_many(data, **kwargs)[source]π
Write multiple variables.
If any structβs
metadatacontains atrace.job_idmatching a running job, that job is transitioned tocompleted.- Return type:
None- Parameters:
data (dict)