Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions bluesky_queueserver_api/_happi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""Support for happi -
pcdshub.github.io/happi
"""


import copy

from happi.item import HappiItem, EntryInfo # type: ignore


class REManagerAPIZMQItem(HappiItem):
zmq_control_addr = EntryInfo("ZMQ control address.", enforce=str, optional=False)
zmq_info_addr = EntryInfo("ZMQ info address.", enforce=str, optional=False)
kwargs = copy.copy(HappiItem.kwargs)
kwargs.default = {"zmq_control_addr": "{{zmq_control_addr}}", "zmq_info_addr": "{{zmq_info_addr}}"}
device_class = EntryInfo(default="bluesky_queueserver_api.zmq.REManagerAPI")


class REManagerAPIHTTPItem(HappiItem):
http_server_uri = EntryInfo("HTTP server URI.", enforce=str, optional=False)
http_auth_provider = EntryInfo("HTTP auth provider.", enforce=str, optional=False)
kwargs = copy.copy(HappiItem.kwargs)
kwargs.default = {"http_server_uri": "{{http_server_uri}}", "http_auth_provider": "{{http_auth_provider}}"}
device_class = EntryInfo(default="bluesky_queueserver_api.http.REManagerAPI")
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# List required packages in this file, one per line.
bluesky-queueserver
httpx
httpx
happi