dmxcontrol3-network-interface 3.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dmxc_protobuf/Client/AffinityClient_pb2.py +39 -0
- dmxc_protobuf/Client/AffinityClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/AffinityClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/AttachableClient_pb2.py +39 -0
- dmxc_protobuf/Client/AttachableClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/AttachableClient_pb2_grpc.py +356 -0
- dmxc_protobuf/Client/AudioClient_pb2.py +39 -0
- dmxc_protobuf/Client/AudioClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/AudioClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/BackgroundTaskClient_pb2.py +39 -0
- dmxc_protobuf/Client/BackgroundTaskClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/BackgroundTaskClient_pb2_grpc.py +141 -0
- dmxc_protobuf/Client/BeatClient_pb2.py +39 -0
- dmxc_protobuf/Client/BeatClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/BeatClient_pb2_grpc.py +356 -0
- dmxc_protobuf/Client/CommandLineClient_pb2.py +39 -0
- dmxc_protobuf/Client/CommandLineClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/CommandLineClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/CueClient_pb2.py +39 -0
- dmxc_protobuf/Client/CueClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/CueClient_pb2_grpc.py +361 -0
- dmxc_protobuf/Client/CueTriggerClient_pb2.py +39 -0
- dmxc_protobuf/Client/CueTriggerClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/CueTriggerClient_pb2_grpc.py +98 -0
- dmxc_protobuf/Client/CuelistClient_pb2.py +39 -0
- dmxc_protobuf/Client/CuelistClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/CuelistClient_pb2_grpc.py +572 -0
- dmxc_protobuf/Client/CuelistGroupClient_pb2.py +39 -0
- dmxc_protobuf/Client/CuelistGroupClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/CuelistGroupClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/DMXClient_pb2.py +39 -0
- dmxc_protobuf/Client/DMXClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/DMXClient_pb2_grpc.py +313 -0
- dmxc_protobuf/Client/DMXInterfaceManagementClient_pb2.py +39 -0
- dmxc_protobuf/Client/DMXInterfaceManagementClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/DMXInterfaceManagementClient_pb2_grpc.py +743 -0
- dmxc_protobuf/Client/DeviceClient_pb2.py +41 -0
- dmxc_protobuf/Client/DeviceClient_pb2.pyi +8 -0
- dmxc_protobuf/Client/DeviceClient_pb2_grpc.py +918 -0
- dmxc_protobuf/Client/ElectricityClient_pb2.py +39 -0
- dmxc_protobuf/Client/ElectricityClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/ElectricityClient_pb2_grpc.py +356 -0
- dmxc_protobuf/Client/ExecutorClient_pb2.py +39 -0
- dmxc_protobuf/Client/ExecutorClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/ExecutorClient_pb2_grpc.py +492 -0
- dmxc_protobuf/Client/FannedValueClient_pb2.py +39 -0
- dmxc_protobuf/Client/FannedValueClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/FannedValueClient_pb2_grpc.py +141 -0
- dmxc_protobuf/Client/InputClient_pb2.py +39 -0
- dmxc_protobuf/Client/InputClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/InputClient_pb2_grpc.py +1044 -0
- dmxc_protobuf/Client/ItemListClient_pb2.py +39 -0
- dmxc_protobuf/Client/ItemListClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/ItemListClient_pb2_grpc.py +356 -0
- dmxc_protobuf/Client/LogClient_pb2.py +39 -0
- dmxc_protobuf/Client/LogClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/LogClient_pb2_grpc.py +184 -0
- dmxc_protobuf/Client/MacroBoardClient_pb2.py +39 -0
- dmxc_protobuf/Client/MacroBoardClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/MacroBoardClient_pb2_grpc.py +442 -0
- dmxc_protobuf/Client/MacroClient_pb2.py +39 -0
- dmxc_protobuf/Client/MacroClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/MacroClient_pb2_grpc.py +313 -0
- dmxc_protobuf/Client/MainSwitchClient_pb2.py +39 -0
- dmxc_protobuf/Client/MainSwitchClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/MainSwitchClient_pb2_grpc.py +184 -0
- dmxc_protobuf/Client/MasterClient_pb2.py +39 -0
- dmxc_protobuf/Client/MasterClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/MasterClient_pb2_grpc.py +313 -0
- dmxc_protobuf/Client/MonitoringClient_pb2.py +39 -0
- dmxc_protobuf/Client/MonitoringClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/MonitoringClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/ParameterClient_pb2.py +39 -0
- dmxc_protobuf/Client/ParameterClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/ParameterClient_pb2_grpc.py +227 -0
- dmxc_protobuf/Client/PluginManagementClient_pb2.py +39 -0
- dmxc_protobuf/Client/PluginManagementClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/PluginManagementClient_pb2_grpc.py +184 -0
- dmxc_protobuf/Client/PositionMappingClient_pb2.py +39 -0
- dmxc_protobuf/Client/PositionMappingClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/PositionMappingClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/PresetClient_pb2.py +40 -0
- dmxc_protobuf/Client/PresetClient_pb2.pyi +7 -0
- dmxc_protobuf/Client/PresetClient_pb2_grpc.py +443 -0
- dmxc_protobuf/Client/ProgrammerClient_pb2.py +40 -0
- dmxc_protobuf/Client/ProgrammerClient_pb2.pyi +7 -0
- dmxc_protobuf/Client/ProgrammerClient_pb2_grpc.py +701 -0
- dmxc_protobuf/Client/ProjectClient_pb2.py +39 -0
- dmxc_protobuf/Client/ProjectClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/ProjectClient_pb2_grpc.py +1003 -0
- dmxc_protobuf/Client/RDMClient_pb2.py +39 -0
- dmxc_protobuf/Client/RDMClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/RDMClient_pb2_grpc.py +313 -0
- dmxc_protobuf/Client/SettingsClient_pb2.py +39 -0
- dmxc_protobuf/Client/SettingsClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/SettingsClient_pb2_grpc.py +485 -0
- dmxc_protobuf/Client/StageviewClient_pb2.py +39 -0
- dmxc_protobuf/Client/StageviewClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/StageviewClient_pb2_grpc.py +270 -0
- dmxc_protobuf/Client/TimecodeClient_pb2.py +39 -0
- dmxc_protobuf/Client/TimecodeClient_pb2.pyi +6 -0
- dmxc_protobuf/Client/TimecodeClient_pb2_grpc.py +1001 -0
- dmxc_protobuf/Client/UserClient_pb2.py +41 -0
- dmxc_protobuf/Client/UserClient_pb2.pyi +8 -0
- dmxc_protobuf/Client/UserClient_pb2_grpc.py +490 -0
- dmxc_protobuf/Client/__init__.py +0 -0
- dmxc_protobuf/Common/ResourceService_pb2.py +41 -0
- dmxc_protobuf/Common/ResourceService_pb2.pyi +6 -0
- dmxc_protobuf/Common/ResourceService_pb2_grpc.py +514 -0
- dmxc_protobuf/Common/Types/AffinityServiceTypes_pb2.py +45 -0
- dmxc_protobuf/Common/Types/AffinityServiceTypes_pb2.pyi +55 -0
- dmxc_protobuf/Common/Types/AffinityServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/AttachableServiceTypes_pb2.py +74 -0
- dmxc_protobuf/Common/Types/AttachableServiceTypes_pb2.pyi +195 -0
- dmxc_protobuf/Common/Types/AttachableServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Audio/AudioServiceTypes_pb2.py +62 -0
- dmxc_protobuf/Common/Types/Audio/AudioServiceTypes_pb2.pyi +183 -0
- dmxc_protobuf/Common/Types/Audio/AudioServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Audio/__init__.py +0 -0
- dmxc_protobuf/Common/Types/BackgroundTaskServiceTypes_pb2.py +43 -0
- dmxc_protobuf/Common/Types/BackgroundTaskServiceTypes_pb2.pyi +64 -0
- dmxc_protobuf/Common/Types/BackgroundTaskServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/BeatServiceTypes_pb2.py +44 -0
- dmxc_protobuf/Common/Types/BeatServiceTypes_pb2.pyi +55 -0
- dmxc_protobuf/Common/Types/BeatServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/BroadcastServiceTypes_pb2.py +37 -0
- dmxc_protobuf/Common/Types/BroadcastServiceTypes_pb2.pyi +25 -0
- dmxc_protobuf/Common/Types/BroadcastServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/CommandLineServiceTypes_pb2.py +57 -0
- dmxc_protobuf/Common/Types/CommandLineServiceTypes_pb2.pyi +122 -0
- dmxc_protobuf/Common/Types/CommandLineServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/CommonTypes_pb2.py +64 -0
- dmxc_protobuf/Common/Types/CommonTypes_pb2.pyi +161 -0
- dmxc_protobuf/Common/Types/CommonTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Cue/CueServiceTypes_pb2.py +79 -0
- dmxc_protobuf/Common/Types/Cue/CueServiceTypes_pb2.pyi +316 -0
- dmxc_protobuf/Common/Types/Cue/CueServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Cue/CueTriggerServiceTypes_pb2.py +40 -0
- dmxc_protobuf/Common/Types/Cue/CueTriggerServiceTypes_pb2.pyi +32 -0
- dmxc_protobuf/Common/Types/Cue/CueTriggerServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Cue/FannedValueServiceTypes_pb2.py +43 -0
- dmxc_protobuf/Common/Types/Cue/FannedValueServiceTypes_pb2.pyi +47 -0
- dmxc_protobuf/Common/Types/Cue/FannedValueServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Cue/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Cuelist/CuelistGroupServiceTypes_pb2.py +52 -0
- dmxc_protobuf/Common/Types/Cuelist/CuelistGroupServiceTypes_pb2.pyi +101 -0
- dmxc_protobuf/Common/Types/Cuelist/CuelistGroupServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Cuelist/CuelistServiceTypes_pb2.py +92 -0
- dmxc_protobuf/Common/Types/Cuelist/CuelistServiceTypes_pb2.pyi +337 -0
- dmxc_protobuf/Common/Types/Cuelist/CuelistServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Cuelist/__init__.py +0 -0
- dmxc_protobuf/Common/Types/DMX/DMXInterfaceManagementTypes_pb2.py +90 -0
- dmxc_protobuf/Common/Types/DMX/DMXInterfaceManagementTypes_pb2.pyi +278 -0
- dmxc_protobuf/Common/Types/DMX/DMXInterfaceManagementTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/DMX/DMXServiceTypes_pb2.py +49 -0
- dmxc_protobuf/Common/Types/DMX/DMXServiceTypes_pb2.pyi +83 -0
- dmxc_protobuf/Common/Types/DMX/DMXServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/DMX/__init__.py +0 -0
- dmxc_protobuf/Common/Types/DependencyTypes_pb2.py +40 -0
- dmxc_protobuf/Common/Types/DependencyTypes_pb2.pyi +44 -0
- dmxc_protobuf/Common/Types/DependencyTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Device/DeviceServiceCRUDTypes_pb2.py +79 -0
- dmxc_protobuf/Common/Types/Device/DeviceServiceCRUDTypes_pb2.pyi +241 -0
- dmxc_protobuf/Common/Types/Device/DeviceServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Device/DeviceServiceTypes_pb2.py +96 -0
- dmxc_protobuf/Common/Types/Device/DeviceServiceTypes_pb2.pyi +558 -0
- dmxc_protobuf/Common/Types/Device/DeviceServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Device/ProxyDeviceServiceTypes_pb2.py +45 -0
- dmxc_protobuf/Common/Types/Device/ProxyDeviceServiceTypes_pb2.pyi +59 -0
- dmxc_protobuf/Common/Types/Device/ProxyDeviceServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Device/__init__.py +0 -0
- dmxc_protobuf/Common/Types/ElectricityServiceTypes_pb2.py +63 -0
- dmxc_protobuf/Common/Types/ElectricityServiceTypes_pb2.pyi +118 -0
- dmxc_protobuf/Common/Types/ElectricityServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Executor/ExecutorServiceCRUDTypes_pb2.py +70 -0
- dmxc_protobuf/Common/Types/Executor/ExecutorServiceCRUDTypes_pb2.pyi +184 -0
- dmxc_protobuf/Common/Types/Executor/ExecutorServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Executor/ExecutorServiceTypes_pb2.py +41 -0
- dmxc_protobuf/Common/Types/Executor/ExecutorServiceTypes_pb2.pyi +77 -0
- dmxc_protobuf/Common/Types/Executor/ExecutorServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Executor/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Input/InputServiceCRUDTypes_pb2.py +101 -0
- dmxc_protobuf/Common/Types/Input/InputServiceCRUDTypes_pb2.pyi +389 -0
- dmxc_protobuf/Common/Types/Input/InputServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Input/InputServiceTypes_pb2.py +67 -0
- dmxc_protobuf/Common/Types/Input/InputServiceTypes_pb2.pyi +207 -0
- dmxc_protobuf/Common/Types/Input/InputServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/MacroBoardServiceCRUDTypes_pb2.py +58 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/MacroBoardServiceCRUDTypes_pb2.pyi +143 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/MacroBoardServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/MacroBoardServiceTypes_pb2.py +42 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/MacroBoardServiceTypes_pb2.pyi +53 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/MacroBoardServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Input/MacroBoard/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Input/__init__.py +0 -0
- dmxc_protobuf/Common/Types/ItemListServiceTypes_pb2.py +58 -0
- dmxc_protobuf/Common/Types/ItemListServiceTypes_pb2.pyi +126 -0
- dmxc_protobuf/Common/Types/ItemListServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/LogServiceTypes_pb2.py +46 -0
- dmxc_protobuf/Common/Types/LogServiceTypes_pb2.pyi +76 -0
- dmxc_protobuf/Common/Types/LogServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Macro/MacroServiceCRUDTypes_pb2.py +50 -0
- dmxc_protobuf/Common/Types/Macro/MacroServiceCRUDTypes_pb2.pyi +80 -0
- dmxc_protobuf/Common/Types/Macro/MacroServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Macro/MacroServiceTypes_pb2.py +40 -0
- dmxc_protobuf/Common/Types/Macro/MacroServiceTypes_pb2.pyi +42 -0
- dmxc_protobuf/Common/Types/Macro/MacroServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Macro/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Master/MasterServiceCRUDTypes_pb2.py +57 -0
- dmxc_protobuf/Common/Types/Master/MasterServiceCRUDTypes_pb2.pyi +113 -0
- dmxc_protobuf/Common/Types/Master/MasterServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Master/MasterServiceTypes_pb2.py +51 -0
- dmxc_protobuf/Common/Types/Master/MasterServiceTypes_pb2.pyi +93 -0
- dmxc_protobuf/Common/Types/Master/MasterServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Master/__init__.py +0 -0
- dmxc_protobuf/Common/Types/MonitoringServiceTypes_pb2.py +59 -0
- dmxc_protobuf/Common/Types/MonitoringServiceTypes_pb2.pyi +164 -0
- dmxc_protobuf/Common/Types/MonitoringServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/ParameterServiceTypes_pb2.py +60 -0
- dmxc_protobuf/Common/Types/ParameterServiceTypes_pb2.pyi +139 -0
- dmxc_protobuf/Common/Types/ParameterServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/PluginManagementTypes_pb2.py +44 -0
- dmxc_protobuf/Common/Types/PluginManagementTypes_pb2.pyi +52 -0
- dmxc_protobuf/Common/Types/PluginManagementTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/PositionMappingServiceTypes_pb2.py +53 -0
- dmxc_protobuf/Common/Types/PositionMappingServiceTypes_pb2.pyi +91 -0
- dmxc_protobuf/Common/Types/PositionMappingServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Preset/PresetServiceCRUDTypes_pb2.py +54 -0
- dmxc_protobuf/Common/Types/Preset/PresetServiceCRUDTypes_pb2.pyi +110 -0
- dmxc_protobuf/Common/Types/Preset/PresetServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Preset/PresetServiceTypes_pb2.py +46 -0
- dmxc_protobuf/Common/Types/Preset/PresetServiceTypes_pb2.pyi +78 -0
- dmxc_protobuf/Common/Types/Preset/PresetServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Preset/__init__.py +0 -0
- dmxc_protobuf/Common/Types/ProgrammerServiceTypes_pb2.py +91 -0
- dmxc_protobuf/Common/Types/ProgrammerServiceTypes_pb2.pyi +414 -0
- dmxc_protobuf/Common/Types/ProgrammerServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Project/ProjectServiceTypes_pb2.py +129 -0
- dmxc_protobuf/Common/Types/Project/ProjectServiceTypes_pb2.pyi +611 -0
- dmxc_protobuf/Common/Types/Project/ProjectServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Project/__init__.py +0 -0
- dmxc_protobuf/Common/Types/RDM/RDMServiceCRUDTypes_pb2.py +40 -0
- dmxc_protobuf/Common/Types/RDM/RDMServiceCRUDTypes_pb2.pyi +32 -0
- dmxc_protobuf/Common/Types/RDM/RDMServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/RDM/RDMServiceTypes_pb2.py +46 -0
- dmxc_protobuf/Common/Types/RDM/RDMServiceTypes_pb2.pyi +264 -0
- dmxc_protobuf/Common/Types/RDM/RDMServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/RDM/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Resource/ResourceManagementCRUDTypes_pb2.py +49 -0
- dmxc_protobuf/Common/Types/Resource/ResourceManagementCRUDTypes_pb2.pyi +135 -0
- dmxc_protobuf/Common/Types/Resource/ResourceManagementCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Resource/ResourceManagementTypes_pb2.py +65 -0
- dmxc_protobuf/Common/Types/Resource/ResourceManagementTypes_pb2.pyi +173 -0
- dmxc_protobuf/Common/Types/Resource/ResourceManagementTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Resource/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Settings/MainSwitchServiceTypes_pb2.py +42 -0
- dmxc_protobuf/Common/Types/Settings/MainSwitchServiceTypes_pb2.pyi +42 -0
- dmxc_protobuf/Common/Types/Settings/MainSwitchServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Settings/__init__.py +0 -0
- dmxc_protobuf/Common/Types/SettingsServiceTypes_pb2.py +63 -0
- dmxc_protobuf/Common/Types/SettingsServiceTypes_pb2.pyi +189 -0
- dmxc_protobuf/Common/Types/SettingsServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/StageView/StageViewServiceCRUDTypes_pb2.py +61 -0
- dmxc_protobuf/Common/Types/StageView/StageViewServiceCRUDTypes_pb2.pyi +165 -0
- dmxc_protobuf/Common/Types/StageView/StageViewServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/StageView/StageViewServiceTypes_pb2.py +49 -0
- dmxc_protobuf/Common/Types/StageView/StageViewServiceTypes_pb2.pyi +103 -0
- dmxc_protobuf/Common/Types/StageView/StageViewServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/StageView/__init__.py +0 -0
- dmxc_protobuf/Common/Types/Timecode/TimecodeServiceCRUDTypes_pb2.py +110 -0
- dmxc_protobuf/Common/Types/Timecode/TimecodeServiceCRUDTypes_pb2.pyi +390 -0
- dmxc_protobuf/Common/Types/Timecode/TimecodeServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Timecode/TimecodeServiceTypes_pb2.py +54 -0
- dmxc_protobuf/Common/Types/Timecode/TimecodeServiceTypes_pb2.pyi +184 -0
- dmxc_protobuf/Common/Types/Timecode/TimecodeServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/Timecode/__init__.py +0 -0
- dmxc_protobuf/Common/Types/UmbraServiceTypes_pb2.py +82 -0
- dmxc_protobuf/Common/Types/UmbraServiceTypes_pb2.pyi +274 -0
- dmxc_protobuf/Common/Types/UmbraServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/User/UserServiceCRUDTypes_pb2.py +49 -0
- dmxc_protobuf/Common/Types/User/UserServiceCRUDTypes_pb2.pyi +57 -0
- dmxc_protobuf/Common/Types/User/UserServiceCRUDTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/User/UserServiceTypes_pb2.py +52 -0
- dmxc_protobuf/Common/Types/User/UserServiceTypes_pb2.pyi +122 -0
- dmxc_protobuf/Common/Types/User/UserServiceTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/User/__init__.py +0 -0
- dmxc_protobuf/Common/Types/ValueTypes_pb2.py +97 -0
- dmxc_protobuf/Common/Types/ValueTypes_pb2.pyi +297 -0
- dmxc_protobuf/Common/Types/ValueTypes_pb2_grpc.py +24 -0
- dmxc_protobuf/Common/Types/__init__.py +0 -0
- dmxc_protobuf/Common/UmbraClientService_pb2.py +44 -0
- dmxc_protobuf/Common/UmbraClientService_pb2.pyi +7 -0
- dmxc_protobuf/Common/UmbraClientService_pb2_grpc.py +693 -0
- dmxc_protobuf/Common/__init__.py +0 -0
- dmxc_protobuf/Server/AffinityService_pb2.py +39 -0
- dmxc_protobuf/Server/AffinityService_pb2.pyi +6 -0
- dmxc_protobuf/Server/AffinityService_pb2_grpc.py +270 -0
- dmxc_protobuf/Server/AttachableService_pb2.py +39 -0
- dmxc_protobuf/Server/AttachableService_pb2.pyi +6 -0
- dmxc_protobuf/Server/AttachableService_pb2_grpc.py +356 -0
- dmxc_protobuf/Server/AudioService_pb2.py +39 -0
- dmxc_protobuf/Server/AudioService_pb2.pyi +6 -0
- dmxc_protobuf/Server/AudioService_pb2_grpc.py +270 -0
- dmxc_protobuf/Server/BackgroundTaskService_pb2.py +39 -0
- dmxc_protobuf/Server/BackgroundTaskService_pb2.pyi +6 -0
- dmxc_protobuf/Server/BackgroundTaskService_pb2_grpc.py +141 -0
- dmxc_protobuf/Server/BeatService_pb2.py +39 -0
- dmxc_protobuf/Server/BeatService_pb2.pyi +6 -0
- dmxc_protobuf/Server/BeatService_pb2_grpc.py +356 -0
- dmxc_protobuf/Server/CommandLineService_pb2.py +39 -0
- dmxc_protobuf/Server/CommandLineService_pb2.pyi +6 -0
- dmxc_protobuf/Server/CommandLineService_pb2_grpc.py +270 -0
- dmxc_protobuf/Server/CueService_pb2.py +39 -0
- dmxc_protobuf/Server/CueService_pb2.pyi +6 -0
- dmxc_protobuf/Server/CueService_pb2_grpc.py +356 -0
- dmxc_protobuf/Server/CueTriggerService_pb2.py +39 -0
- dmxc_protobuf/Server/CueTriggerService_pb2.pyi +6 -0
- dmxc_protobuf/Server/CueTriggerService_pb2_grpc.py +98 -0
- dmxc_protobuf/Server/CuelistGroupService_pb2.py +39 -0
- dmxc_protobuf/Server/CuelistGroupService_pb2.pyi +6 -0
- dmxc_protobuf/Server/CuelistGroupService_pb2_grpc.py +270 -0
- dmxc_protobuf/Server/CuelistService_pb2.py +39 -0
- dmxc_protobuf/Server/CuelistService_pb2.pyi +6 -0
- dmxc_protobuf/Server/CuelistService_pb2_grpc.py +572 -0
- dmxc_protobuf/Server/DMXInterfaceManagementService_pb2.py +39 -0
- dmxc_protobuf/Server/DMXInterfaceManagementService_pb2.pyi +6 -0
- dmxc_protobuf/Server/DMXInterfaceManagementService_pb2_grpc.py +743 -0
- dmxc_protobuf/Server/DMXService_pb2.py +39 -0
- dmxc_protobuf/Server/DMXService_pb2.pyi +6 -0
- dmxc_protobuf/Server/DMXService_pb2_grpc.py +313 -0
- dmxc_protobuf/Server/DeviceService_pb2.py +41 -0
- dmxc_protobuf/Server/DeviceService_pb2.pyi +8 -0
- dmxc_protobuf/Server/DeviceService_pb2_grpc.py +918 -0
- dmxc_protobuf/Server/ElectricityService_pb2.py +39 -0
- dmxc_protobuf/Server/ElectricityService_pb2.pyi +6 -0
- dmxc_protobuf/Server/ElectricityService_pb2_grpc.py +356 -0
- dmxc_protobuf/Server/ExecutorService_pb2.py +39 -0
- dmxc_protobuf/Server/ExecutorService_pb2.pyi +6 -0
- dmxc_protobuf/Server/ExecutorService_pb2_grpc.py +493 -0
- dmxc_protobuf/Server/FannedValueService_pb2.py +39 -0
- dmxc_protobuf/Server/FannedValueService_pb2.pyi +6 -0
- dmxc_protobuf/Server/FannedValueService_pb2_grpc.py +141 -0
- dmxc_protobuf/Server/InputService_pb2.py +39 -0
- dmxc_protobuf/Server/InputService_pb2.pyi +6 -0
- dmxc_protobuf/Server/InputService_pb2_grpc.py +1044 -0
- dmxc_protobuf/Server/ItemListService_pb2.py +39 -0
- dmxc_protobuf/Server/ItemListService_pb2.pyi +6 -0
- dmxc_protobuf/Server/ItemListService_pb2_grpc.py +356 -0
- dmxc_protobuf/Server/LogService_pb2.py +39 -0
- dmxc_protobuf/Server/LogService_pb2.pyi +6 -0
- dmxc_protobuf/Server/LogService_pb2_grpc.py +184 -0
- dmxc_protobuf/Server/MacroBoardService_pb2.py +39 -0
- dmxc_protobuf/Server/MacroBoardService_pb2.pyi +6 -0
- dmxc_protobuf/Server/MacroBoardService_pb2_grpc.py +442 -0
- dmxc_protobuf/Server/MacroService_pb2.py +39 -0
- dmxc_protobuf/Server/MacroService_pb2.pyi +6 -0
- dmxc_protobuf/Server/MacroService_pb2_grpc.py +313 -0
- dmxc_protobuf/Server/MainSwitchService_pb2.py +39 -0
- dmxc_protobuf/Server/MainSwitchService_pb2.pyi +6 -0
- dmxc_protobuf/Server/MainSwitchService_pb2_grpc.py +184 -0
- dmxc_protobuf/Server/MasterService_pb2.py +39 -0
- dmxc_protobuf/Server/MasterService_pb2.pyi +6 -0
- dmxc_protobuf/Server/MasterService_pb2_grpc.py +313 -0
- dmxc_protobuf/Server/MonitoringService_pb2.py +39 -0
- dmxc_protobuf/Server/MonitoringService_pb2.pyi +6 -0
- dmxc_protobuf/Server/MonitoringService_pb2_grpc.py +184 -0
- dmxc_protobuf/Server/ParameterService_pb2.py +39 -0
- dmxc_protobuf/Server/ParameterService_pb2.pyi +6 -0
- dmxc_protobuf/Server/ParameterService_pb2_grpc.py +227 -0
- dmxc_protobuf/Server/PluginManagementService_pb2.py +39 -0
- dmxc_protobuf/Server/PluginManagementService_pb2.pyi +6 -0
- dmxc_protobuf/Server/PluginManagementService_pb2_grpc.py +184 -0
- dmxc_protobuf/Server/PositionMappingService_pb2.py +39 -0
- dmxc_protobuf/Server/PositionMappingService_pb2.pyi +6 -0
- dmxc_protobuf/Server/PositionMappingService_pb2_grpc.py +270 -0
- dmxc_protobuf/Server/PresetService_pb2.py +40 -0
- dmxc_protobuf/Server/PresetService_pb2.pyi +7 -0
- dmxc_protobuf/Server/PresetService_pb2_grpc.py +443 -0
- dmxc_protobuf/Server/ProgrammerService_pb2.py +40 -0
- dmxc_protobuf/Server/ProgrammerService_pb2.pyi +7 -0
- dmxc_protobuf/Server/ProgrammerService_pb2_grpc.py +701 -0
- dmxc_protobuf/Server/ProjectService_pb2.py +39 -0
- dmxc_protobuf/Server/ProjectService_pb2.pyi +6 -0
- dmxc_protobuf/Server/ProjectService_pb2_grpc.py +829 -0
- dmxc_protobuf/Server/RDMService_pb2.py +39 -0
- dmxc_protobuf/Server/RDMService_pb2.pyi +6 -0
- dmxc_protobuf/Server/RDMService_pb2_grpc.py +313 -0
- dmxc_protobuf/Server/SettingsService_pb2.py +39 -0
- dmxc_protobuf/Server/SettingsService_pb2.pyi +6 -0
- dmxc_protobuf/Server/SettingsService_pb2_grpc.py +485 -0
- dmxc_protobuf/Server/StageviewService_pb2.py +39 -0
- dmxc_protobuf/Server/StageviewService_pb2.pyi +6 -0
- dmxc_protobuf/Server/StageviewService_pb2_grpc.py +270 -0
- dmxc_protobuf/Server/TimecodeService_pb2.py +39 -0
- dmxc_protobuf/Server/TimecodeService_pb2.pyi +6 -0
- dmxc_protobuf/Server/TimecodeService_pb2_grpc.py +1001 -0
- dmxc_protobuf/Server/UserService_pb2.py +41 -0
- dmxc_protobuf/Server/UserService_pb2.pyi +8 -0
- dmxc_protobuf/Server/UserService_pb2_grpc.py +490 -0
- dmxc_protobuf/Server/__init__.py +0 -0
- dmxc_protobuf/__init__.py +0 -0
- dmxc_protobuf/connection.py +583 -0
- dmxc_protobuf/events.py +74 -0
- dmxc_protobuf/extensions.py +204 -0
- dmxc_protobuf/i18n.py +47 -0
- dmxc_protobuf/net_constants.py +22 -0
- dmxc_protobuf/tools.py +11 -0
- dmxc_protobuf/udp.py +197 -0
- dmxcontrol3_network_interface-3.3.3.dist-info/METADATA +83 -0
- dmxcontrol3_network_interface-3.3.3.dist-info/RECORD +412 -0
- dmxcontrol3_network_interface-3.3.3.dist-info/WHEEL +4 -0
- dmxcontrol3_network_interface-3.3.3.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"""Helpers for generated messages (ports of the C# partial class extensions)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
from typing import Callable, Iterable, Optional, Sequence, Union
|
|
7
|
+
|
|
8
|
+
from dmxc_protobuf.Common.Types import CommonTypes_pb2, DependencyTypes_pb2, ValueTypes_pb2
|
|
9
|
+
from dmxc_protobuf.Common.Types.Project import ProjectServiceTypes_pb2
|
|
10
|
+
|
|
11
|
+
SimpleValue = Union[str, int, float, bool]
|
|
12
|
+
|
|
13
|
+
# ~~~~~~~~~~~~~~~~~~~ ColorData ~~~~~~~~~~~~~~~~~~~
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def color_is_white(c: ValueTypes_pb2.ColorData) -> bool:
|
|
17
|
+
return c.a == 255 and c.r == 255 and c.g == 255 and c.b == 255
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# ~~~~~~~~~~~~~~~~~~~ Dependencies ~~~~~~~~~~~~~~~~~~~
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def dependency_data_not_resolved(d: DependencyTypes_pb2.DependencyData) -> bool:
|
|
24
|
+
"""True if this node or any child has unresolved dependencies."""
|
|
25
|
+
return len(d.dependencies) > 0 or any(dependency_data_not_resolved(c) for c in d.children)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def dependency_object_to_tree_string(
|
|
29
|
+
o: DependencyTypes_pb2.DependencyObject, translator: Optional[Callable[[str], str]] = None
|
|
30
|
+
) -> str:
|
|
31
|
+
t = translator or (lambda s: s)
|
|
32
|
+
s = t(o.Type) + ": " + o.Name
|
|
33
|
+
if o.HasField("solution"):
|
|
34
|
+
s += " [" + t(o.solution.Solution) + "]"
|
|
35
|
+
return s
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def dependency_object_add_possible_solution(
|
|
39
|
+
o: DependencyTypes_pb2.DependencyObject, s: DependencySolution
|
|
40
|
+
) -> None:
|
|
41
|
+
"""Adds a possible solution and selects it if no solution is selected yet."""
|
|
42
|
+
o.possibleSolutions.append(s)
|
|
43
|
+
if not o.HasField("solution"):
|
|
44
|
+
o.solution.CopyFrom(s)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
DependencySolution = DependencyTypes_pb2.DependencySolution
|
|
48
|
+
|
|
49
|
+
# ~~~~~~~~~~~~~~~~~~~ Project ~~~~~~~~~~~~~~~~~~~
|
|
50
|
+
|
|
51
|
+
ProjectVersionID = ProjectServiceTypes_pb2.ProjectVersionID
|
|
52
|
+
|
|
53
|
+
_VERSION_ID_RE = re.compile(r"^([^#]+)(#[0-9]+(\.[0-9]+(\.[0-9]+)?)?)?$")
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def project_data_find_version(
|
|
57
|
+
p: ProjectServiceTypes_pb2.ProjectData, id: Optional[ProjectVersionID], compare_guid: bool = True
|
|
58
|
+
) -> Optional[ProjectServiceTypes_pb2.ProjectVersionData]:
|
|
59
|
+
if id is None:
|
|
60
|
+
return None
|
|
61
|
+
if compare_guid:
|
|
62
|
+
return next((v for v in p.versions if v.id == id), None)
|
|
63
|
+
vs = project_version_id_to_version_string(id)
|
|
64
|
+
return next((v for v in p.versions if project_version_id_to_version_string(v.id) == vs), None)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def project_version_id_is_no_version(id: ProjectVersionID) -> bool:
|
|
68
|
+
return id.major == 0 and id.minor == 0 and id.revision == 0
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def project_version_id_from_string(combined_or_guid: Optional[str], version: Optional[str] = None) -> Optional[ProjectVersionID]:
|
|
72
|
+
"""Parses ``guid#major.minor.revision`` (version part optional), or ``guid`` and ``version``
|
|
73
|
+
given separately. Returns None if the string is invalid."""
|
|
74
|
+
combined = f"{combined_or_guid}#{version}" if version is not None else combined_or_guid
|
|
75
|
+
if combined is None or not _VERSION_ID_RE.match(combined):
|
|
76
|
+
return None
|
|
77
|
+
|
|
78
|
+
ret = ProjectVersionID(guid=combined)
|
|
79
|
+
if "#" in combined:
|
|
80
|
+
guid, ver = combined.split("#")
|
|
81
|
+
ret.guid = guid
|
|
82
|
+
parts = [int(x) for x in ver.split(".")]
|
|
83
|
+
ret.major = parts[0]
|
|
84
|
+
if len(parts) > 1:
|
|
85
|
+
ret.minor = parts[1]
|
|
86
|
+
if len(parts) > 2:
|
|
87
|
+
ret.revision = parts[2]
|
|
88
|
+
return ret
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def project_version_id_to_combined_string(id: ProjectVersionID) -> str:
|
|
92
|
+
v = project_version_id_to_version_string(id)
|
|
93
|
+
return f"{id.guid}#{v}" if v else id.guid
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def project_version_id_to_version_string(id: ProjectVersionID) -> str:
|
|
97
|
+
if id.major > 0 or id.minor > 0 or id.revision > 0:
|
|
98
|
+
return f"{id.major}.{id.minor}.{id.revision}"
|
|
99
|
+
return ""
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def compare_project_version_ids(a: Optional[ProjectVersionID], b: Optional[ProjectVersionID]) -> int:
|
|
103
|
+
"""Orders by guid, then major, minor, revision. Use with ``functools.cmp_to_key``."""
|
|
104
|
+
if a is b:
|
|
105
|
+
return 0
|
|
106
|
+
if a is None:
|
|
107
|
+
return -1
|
|
108
|
+
if b is None:
|
|
109
|
+
return 1
|
|
110
|
+
ka = (a.guid, a.major, a.minor, a.revision)
|
|
111
|
+
kb = (b.guid, b.major, b.minor, b.revision)
|
|
112
|
+
return (ka > kb) - (ka < kb)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def project_version_id_sort_key(id: ProjectVersionID) -> tuple[str, int, int, int]:
|
|
116
|
+
"""Sort key matching :func:`compare_project_version_ids`."""
|
|
117
|
+
return (id.guid, id.major, id.minor, id.revision)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def merge_todos(
|
|
121
|
+
existing: Optional[Iterable[ProjectServiceTypes_pb2.ProjectTodoDescriptor]],
|
|
122
|
+
created_or_updated: Optional[Iterable[ProjectServiceTypes_pb2.ProjectTodoDescriptor]],
|
|
123
|
+
) -> list[ProjectServiceTypes_pb2.ProjectTodoDescriptor]:
|
|
124
|
+
"""Merges todos by id; entries from ``created_or_updated`` replace existing ones."""
|
|
125
|
+
if existing is None:
|
|
126
|
+
return list(created_or_updated or [])
|
|
127
|
+
if created_or_updated is None:
|
|
128
|
+
return list(existing)
|
|
129
|
+
merged = {e.id: e for e in existing}
|
|
130
|
+
for n in created_or_updated:
|
|
131
|
+
merged[n.id] = n
|
|
132
|
+
return list(merged.values())
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
# ~~~~~~~~~~~~~~~~~~~ Translatable data ~~~~~~~~~~~~~~~~~~~
|
|
136
|
+
|
|
137
|
+
_SIMPLE_VALUE_FIELDS = {
|
|
138
|
+
"boolValue", "byteValue", "doubleValue", "floatValue", "intValue", "stringValue",
|
|
139
|
+
"longValue", "uintValue", "ulongValue", "shortValue", "sbyteValue", "ushortValue",
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def object_data_to_object_simple(o: CommonTypes_pb2.ObjectData) -> SimpleValue:
|
|
144
|
+
"""Returns the value held by an ObjectData, or "" if it holds none (or an array)."""
|
|
145
|
+
field = o.WhichOneof("value")
|
|
146
|
+
if field not in _SIMPLE_VALUE_FIELDS:
|
|
147
|
+
return ""
|
|
148
|
+
v = getattr(o, field)
|
|
149
|
+
if field == "floatValue":
|
|
150
|
+
# drop the noise from widening float32 to double
|
|
151
|
+
v = float(f"{v:.7g}")
|
|
152
|
+
return v
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def _format_value(v: SimpleValue) -> str:
|
|
156
|
+
if isinstance(v, float) and v.is_integer():
|
|
157
|
+
return str(int(v)) # match .NET: 2.0 -> "2"
|
|
158
|
+
return str(v)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
_FORMAT_ITEM_RE = re.compile(r"\{\{|\}\}|\{(\d+)(?:,\s*(-?\d+))?(?::[^}]*)?\}")
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def format_net_string(fmt: str, args: Sequence[SimpleValue]) -> str:
|
|
165
|
+
"""Formats a .NET style composite format string (``{0}``, ``{1,-5}``, ``{{`` / ``}}``).
|
|
166
|
+
|
|
167
|
+
Format specifiers (``{0:N2}``) are accepted but ignored; placeholders with a missing
|
|
168
|
+
argument are kept as they are.
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
def repl(m: re.Match[str]) -> str:
|
|
172
|
+
if m.group(0) == "{{":
|
|
173
|
+
return "{"
|
|
174
|
+
if m.group(0) == "}}":
|
|
175
|
+
return "}"
|
|
176
|
+
i = int(m.group(1))
|
|
177
|
+
if i >= len(args):
|
|
178
|
+
return m.group(0)
|
|
179
|
+
s = _format_value(args[i])
|
|
180
|
+
if m.group(2) is None:
|
|
181
|
+
return s
|
|
182
|
+
w = int(m.group(2))
|
|
183
|
+
return s.ljust(-w) if w < 0 else s.rjust(w)
|
|
184
|
+
|
|
185
|
+
return _FORMAT_ITEM_RE.sub(repl, fmt)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def translateable_to_formatted_string(t: Optional[CommonTypes_pb2.TranslateableData]) -> Optional[str]:
|
|
189
|
+
"""Resolves a TranslateableData into its final (untranslated) string."""
|
|
190
|
+
if t is None:
|
|
191
|
+
return None
|
|
192
|
+
if len(t.parameters) == 0:
|
|
193
|
+
return t.formatString
|
|
194
|
+
|
|
195
|
+
params: list[SimpleValue] = []
|
|
196
|
+
for p in t.parameters:
|
|
197
|
+
which = p.WhichOneof("value")
|
|
198
|
+
if which == "objectData":
|
|
199
|
+
params.append(object_data_to_object_simple(p.objectData))
|
|
200
|
+
elif which == "translateable":
|
|
201
|
+
params.append(translateable_to_formatted_string(p.translateable) or "")
|
|
202
|
+
else:
|
|
203
|
+
params.append("")
|
|
204
|
+
return format_net_string(t.formatString, params)
|
dmxc_protobuf/i18n.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Builder for TranslateableData (port of the C# ``TranslatableDataBuilder``)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any, Optional
|
|
6
|
+
|
|
7
|
+
from dmxc_protobuf.Common.Types.CommonTypes_pb2 import ObjectData, TranslateableData
|
|
8
|
+
|
|
9
|
+
_INT32 = (-(2**31), 2**31 - 1)
|
|
10
|
+
_INT64 = (-(2**63), 2**63 - 1)
|
|
11
|
+
_UINT64_MAX = 2**64 - 1
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _to_object_data(p: Any) -> ObjectData:
|
|
15
|
+
if isinstance(p, bool): # before int: bool is a subclass of int
|
|
16
|
+
return ObjectData(boolValue=p)
|
|
17
|
+
if isinstance(p, int):
|
|
18
|
+
if _INT32[0] <= p <= _INT32[1]:
|
|
19
|
+
return ObjectData(intValue=p)
|
|
20
|
+
if _INT64[0] <= p <= _INT64[1]:
|
|
21
|
+
return ObjectData(longValue=p)
|
|
22
|
+
if 0 <= p <= _UINT64_MAX:
|
|
23
|
+
return ObjectData(ulongValue=p)
|
|
24
|
+
return ObjectData(stringValue=str(p))
|
|
25
|
+
if isinstance(p, float):
|
|
26
|
+
return ObjectData(doubleValue=p)
|
|
27
|
+
return ObjectData(stringValue="" if p is None else str(p))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def translatable(format_string: Optional[str], *parameters: Any) -> TranslateableData:
|
|
31
|
+
"""Builds a TranslateableData from a .NET style format string (``"{0} of {1}"``).
|
|
32
|
+
|
|
33
|
+
Integers in int32 range become ``intValue``, larger ones ``longValue`` (or ``ulongValue``),
|
|
34
|
+
floats ``doubleValue``, TranslateableData values are nested, and anything else is stored
|
|
35
|
+
as a string.
|
|
36
|
+
"""
|
|
37
|
+
r = TranslateableData(formatString=format_string or "")
|
|
38
|
+
for p in parameters:
|
|
39
|
+
if isinstance(p, TranslateableData):
|
|
40
|
+
r.parameters.add(translateable=p)
|
|
41
|
+
else:
|
|
42
|
+
r.parameters.add(objectData=_to_object_data(p))
|
|
43
|
+
return r
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
#: Short alias, like ``TranslatableDataBuilder._`` in C#.
|
|
47
|
+
_ = translatable
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Addresses and ports DMXControl 3 programs listen on.
|
|
2
|
+
|
|
3
|
+
(12346-12545 are unassigned according to IANA.)
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
#: Multicast address used for discovery. 68 = D, 67 = C => 225.D.C.3
|
|
7
|
+
DMXCNET_MULTICAST_ADDRESS = "225.68.67.3"
|
|
8
|
+
|
|
9
|
+
NETMANAGER_KERNEL_JSON_SEND_PORT = 23242
|
|
10
|
+
|
|
11
|
+
#: Port used for discovery
|
|
12
|
+
DMXCNET_MULTICAST_PORT = 17474
|
|
13
|
+
|
|
14
|
+
#: Port of the Umbra broker (since 3.3). 17475 is 0x4443, which is ASCII "DC"
|
|
15
|
+
UMBRA_LISTEN_PORT = 17475
|
|
16
|
+
UMBRA_LISTEN_PORT_SECURE = 17476
|
|
17
|
+
|
|
18
|
+
#: Maximum size of a gRPC message (50 MB)
|
|
19
|
+
MAX_MESSAGE_SIZE = 50 * 1024 * 1024
|
|
20
|
+
|
|
21
|
+
#: Maximum size of a file to be sent directly as bytes (5 MB)
|
|
22
|
+
MAX_RESOURCE_DIRECT_SEND_SIZE = 5 * 1024 * 1024
|
dmxc_protobuf/tools.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
_NON_ASCII = re.compile(r"[^\x00-\x7F]")
|
|
4
|
+
_NON_PRINTABLE_ASCII = re.compile(r"[^\x20-\x7E]")
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def contains_non_ascii_characters(value: str, also_check_non_printable: bool = False) -> bool:
|
|
8
|
+
"""True if ``value`` contains non-ASCII characters (or, with ``also_check_non_printable``,
|
|
9
|
+
anything outside 0x20-0x7E)."""
|
|
10
|
+
pattern = _NON_PRINTABLE_ASCII if also_check_non_printable else _NON_ASCII
|
|
11
|
+
return pattern.search(value) is not None
|
dmxc_protobuf/udp.py
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"""UDP listener and Umbra discovery (multicast) client."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import asyncio
|
|
6
|
+
import logging
|
|
7
|
+
import socket
|
|
8
|
+
from collections import deque
|
|
9
|
+
from dataclasses import dataclass
|
|
10
|
+
from typing import Iterable, Optional
|
|
11
|
+
|
|
12
|
+
from dmxc_protobuf import net_constants
|
|
13
|
+
from dmxc_protobuf.Common.Types.UmbraServiceTypes_pb2 import UmbraUdpBroadcast
|
|
14
|
+
from dmxc_protobuf.events import Event
|
|
15
|
+
|
|
16
|
+
EndPoint = tuple[str, int]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@dataclass(frozen=True)
|
|
20
|
+
class UdpEventArgs:
|
|
21
|
+
data: bytes
|
|
22
|
+
end_point: EndPoint
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def get_local_ipv4_addresses(include_loopback: bool = False) -> list[str]:
|
|
26
|
+
"""IPv4 addresses of this machine.
|
|
27
|
+
|
|
28
|
+
Uses the optional ``ifaddr`` package to list every interface when it is installed;
|
|
29
|
+
otherwise falls back to the host name lookup and the address of the default route.
|
|
30
|
+
"""
|
|
31
|
+
found: list[str] = []
|
|
32
|
+
try:
|
|
33
|
+
import ifaddr # type: ignore[import-not-found]
|
|
34
|
+
|
|
35
|
+
for adapter in ifaddr.get_adapters():
|
|
36
|
+
for ip in adapter.ips:
|
|
37
|
+
if isinstance(ip.ip, str):
|
|
38
|
+
found.append(ip.ip)
|
|
39
|
+
except ImportError:
|
|
40
|
+
try:
|
|
41
|
+
for info in socket.getaddrinfo(socket.gethostname(), None, socket.AF_INET):
|
|
42
|
+
found.append(str(info[4][0]))
|
|
43
|
+
except OSError:
|
|
44
|
+
pass
|
|
45
|
+
try:
|
|
46
|
+
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s:
|
|
47
|
+
s.connect(("192.0.2.1", 9)) # no packet is sent for UDP connect
|
|
48
|
+
found.append(s.getsockname()[0])
|
|
49
|
+
except OSError:
|
|
50
|
+
pass
|
|
51
|
+
|
|
52
|
+
result: list[str] = []
|
|
53
|
+
for ip in found:
|
|
54
|
+
is_loopback = ip.startswith("127.")
|
|
55
|
+
if (include_loopback or not is_loopback) and ip not in result:
|
|
56
|
+
result.append(ip)
|
|
57
|
+
if include_loopback and "127.0.0.1" not in result:
|
|
58
|
+
result.append("127.0.0.1")
|
|
59
|
+
return result
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class _Protocol(asyncio.DatagramProtocol):
|
|
63
|
+
def __init__(self, owner: UdpListener) -> None:
|
|
64
|
+
self._owner = owner
|
|
65
|
+
|
|
66
|
+
def datagram_received(self, data: bytes, addr: tuple) -> None: # type: ignore[override]
|
|
67
|
+
if not self._owner.is_disposed:
|
|
68
|
+
self._owner.udp_data_received.fire(UdpEventArgs(data, (addr[0], addr[1])))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class UdpListener:
|
|
72
|
+
"""UDP listener with address reuse and optional multicast membership."""
|
|
73
|
+
|
|
74
|
+
def __init__(self, listen_port: int, multicast_ip: Optional[str] = None) -> None:
|
|
75
|
+
self._listen_port = listen_port
|
|
76
|
+
self._multicast_ip = multicast_ip
|
|
77
|
+
self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
|
|
78
|
+
self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
79
|
+
if hasattr(socket, "SO_REUSEPORT"):
|
|
80
|
+
try:
|
|
81
|
+
self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
|
82
|
+
except OSError:
|
|
83
|
+
pass
|
|
84
|
+
self._transport: Optional[asyncio.DatagramTransport] = None
|
|
85
|
+
self._listening = False
|
|
86
|
+
self.is_disposed = False
|
|
87
|
+
self.udp_data_received: Event[[UdpEventArgs]] = Event()
|
|
88
|
+
|
|
89
|
+
async def start_listen(self) -> None:
|
|
90
|
+
if self._listening:
|
|
91
|
+
raise RuntimeError("Already Listening")
|
|
92
|
+
self._listening = True
|
|
93
|
+
self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
|
94
|
+
self._sock.bind(("", self._listen_port))
|
|
95
|
+
self._sock.setblocking(False)
|
|
96
|
+
loop = asyncio.get_running_loop()
|
|
97
|
+
self._transport, _ = await loop.create_datagram_endpoint(lambda: _Protocol(self), sock=self._sock)
|
|
98
|
+
|
|
99
|
+
def add_multicast_listen_ip_address(self, ip_address: str) -> None:
|
|
100
|
+
"""Joins the multicast group given in the constructor on the interface with ``ip_address``."""
|
|
101
|
+
if self._multicast_ip is None:
|
|
102
|
+
raise RuntimeError("MulticastIP not defined in constructor")
|
|
103
|
+
if not ip_address:
|
|
104
|
+
raise ValueError("ip_address")
|
|
105
|
+
mreq = socket.inet_aton(self._multicast_ip) + socket.inet_aton(ip_address)
|
|
106
|
+
self._sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
|
|
107
|
+
|
|
108
|
+
def dispose(self) -> None:
|
|
109
|
+
if self.is_disposed:
|
|
110
|
+
return
|
|
111
|
+
self.is_disposed = True
|
|
112
|
+
self.udp_data_received.clear()
|
|
113
|
+
if self._transport is not None:
|
|
114
|
+
self._transport.close()
|
|
115
|
+
else:
|
|
116
|
+
self._sock.close()
|
|
117
|
+
|
|
118
|
+
close = dispose
|
|
119
|
+
|
|
120
|
+
async def __aenter__(self) -> UdpListener:
|
|
121
|
+
await self.start_listen()
|
|
122
|
+
return self
|
|
123
|
+
|
|
124
|
+
async def __aexit__(self, *exc: object) -> None:
|
|
125
|
+
self.dispose()
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@dataclass(frozen=True)
|
|
129
|
+
class UmbraDiscoveryBroadcastEventArgs:
|
|
130
|
+
broadcast: UmbraUdpBroadcast
|
|
131
|
+
end_point: EndPoint
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class UmbraDiscoveryClient:
|
|
135
|
+
"""Listens for the multicast discovery broadcasts Umbra servers send.
|
|
136
|
+
|
|
137
|
+
Subscribe to :attr:`umbra_discovery_broadcast_received` and call :meth:`start_discovery`.
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
def __init__(self, logger: Optional[logging.Logger] = None) -> None:
|
|
141
|
+
self.logger = logger or logging.getLogger(__name__)
|
|
142
|
+
self.broadcast_history_max = 100
|
|
143
|
+
self.umbra_discovery_broadcast_received: Event[[UmbraDiscoveryBroadcastEventArgs]] = Event()
|
|
144
|
+
self._listener: Optional[UdpListener] = None
|
|
145
|
+
self._received: deque[UmbraUdpBroadcast] = deque()
|
|
146
|
+
|
|
147
|
+
def get_broadcast_history(self, from_new_to_old: bool, limit: int) -> list[UmbraUdpBroadcast]:
|
|
148
|
+
items = list(self._received)
|
|
149
|
+
if from_new_to_old:
|
|
150
|
+
items.reverse()
|
|
151
|
+
if 0 < limit < len(items):
|
|
152
|
+
items = items[:limit]
|
|
153
|
+
return items
|
|
154
|
+
|
|
155
|
+
async def start_discovery(self, listen_addresses: Optional[Iterable[str]] = None) -> None:
|
|
156
|
+
"""Starts listening. Without ``listen_addresses``, the multicast group is joined on all
|
|
157
|
+
non-loopback IPv4 addresses found by :func:`get_local_ipv4_addresses`."""
|
|
158
|
+
addresses = list(listen_addresses) if listen_addresses is not None else get_local_ipv4_addresses()
|
|
159
|
+
|
|
160
|
+
if self._listener is not None:
|
|
161
|
+
self._listener.dispose()
|
|
162
|
+
|
|
163
|
+
listener = UdpListener(net_constants.DMXCNET_MULTICAST_PORT, net_constants.DMXCNET_MULTICAST_ADDRESS)
|
|
164
|
+
self._listener = listener
|
|
165
|
+
await listener.start_listen()
|
|
166
|
+
|
|
167
|
+
if not addresses:
|
|
168
|
+
self.logger.warning("Network not available. Only listening Broadcast")
|
|
169
|
+
else:
|
|
170
|
+
for a in addresses:
|
|
171
|
+
try:
|
|
172
|
+
self.logger.info("Listening on %s for Umbra Multicasts", a)
|
|
173
|
+
listener.add_multicast_listen_ip_address(a)
|
|
174
|
+
except OSError:
|
|
175
|
+
self.logger.warning("Unable to Listen on IP Address: %s", a)
|
|
176
|
+
|
|
177
|
+
listener.udp_data_received += self._on_udp_data
|
|
178
|
+
|
|
179
|
+
def dispose(self) -> None:
|
|
180
|
+
if self._listener is not None:
|
|
181
|
+
self._listener.dispose()
|
|
182
|
+
self._listener = None
|
|
183
|
+
self.umbra_discovery_broadcast_received.clear()
|
|
184
|
+
|
|
185
|
+
close = dispose
|
|
186
|
+
|
|
187
|
+
def _on_udp_data(self, args: UdpEventArgs) -> None:
|
|
188
|
+
try:
|
|
189
|
+
d = UmbraUdpBroadcast.FromString(args.data)
|
|
190
|
+
except Exception as e: # DecodeError
|
|
191
|
+
self.logger.debug("Unable to deserialize Data: %s", e)
|
|
192
|
+
return
|
|
193
|
+
d.sourceEndPoint = args.end_point[0]
|
|
194
|
+
self._received.append(d)
|
|
195
|
+
while len(self._received) > self.broadcast_history_max:
|
|
196
|
+
self._received.popleft()
|
|
197
|
+
self.umbra_discovery_broadcast_received.fire(UmbraDiscoveryBroadcastEventArgs(d, args.end_point))
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dmxcontrol3-network-interface
|
|
3
|
+
Version: 3.3.3
|
|
4
|
+
Summary: gRPC client library for DMXControl 3
|
|
5
|
+
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Author: Samuel Hufen
|
|
8
|
+
Author-email: samuel@hufen.xyz
|
|
9
|
+
Requires-Python: >=3.12,<4.0
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
16
|
+
Requires-Dist: grpcio (>=1.71.0,<2.0.0)
|
|
17
|
+
Requires-Dist: protobuf (>=5.29.0,<6)
|
|
18
|
+
Project-URL: Repository, https://github.com/DMXControl/DMXControl3-Network-Interface
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# dmxcontrol3-network-interface
|
|
22
|
+
|
|
23
|
+
Generated gRPC/protobuf client library for DMXControl 3, plus Python ports of the helpers from the C# `LumosProtobuf` library.
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
pip install dmxcontrol3-network-interface
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The import package is `dmxc_protobuf`:
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import grpc
|
|
33
|
+
from dmxc_protobuf.Client import AudioClient_pb2_grpc
|
|
34
|
+
|
|
35
|
+
channel = grpc.insecure_channel("localhost:50051")
|
|
36
|
+
stub = AudioClient_pb2_grpc.AudioClientStub(channel)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Helpers
|
|
40
|
+
|
|
41
|
+
| Module | Contents |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `dmxc_protobuf.connection` | `UmbraConnectionClient` (login/logoff, mandatory ping, broadcasts, client control requests, client change events, discovery handling), `ConnectionClientData` protocol, `create_umbra_channel`, `LoginException` |
|
|
44
|
+
| `dmxc_protobuf.udp` | `UmbraDiscoveryClient` (multicast discovery of Umbra servers), `UdpListener`, `get_local_ipv4_addresses` |
|
|
45
|
+
| `dmxc_protobuf.net_constants` | Ports, the multicast address and message size limits |
|
|
46
|
+
| `dmxc_protobuf.i18n` | `translatable` / `_` to build `TranslateableData` |
|
|
47
|
+
| `dmxc_protobuf.extensions` | Helpers for generated messages: `translateable_to_formatted_string`, `object_data_to_object_simple`, `project_version_id_from_string`, `merge_todos`, `color_is_white`, ... |
|
|
48
|
+
| `dmxc_protobuf.tools` | `contains_non_ascii_characters` |
|
|
49
|
+
|
|
50
|
+
The connection client uses `grpc.aio`. Event handlers are added with `+=` and may be plain or async functions:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
import asyncio
|
|
54
|
+
from dmxc_protobuf.connection import UmbraConnectionClient, create_umbra_channel
|
|
55
|
+
from dmxc_protobuf.Common.Types.UmbraServiceTypes_pb2 import ClientInfo, ClientProgramInfo, ReadyToWorkState
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class Data:
|
|
59
|
+
def __init__(self):
|
|
60
|
+
self.umbra_channel = create_umbra_channel("127.0.0.1")
|
|
61
|
+
self.host_metadata = [] # metadata sent with every call
|
|
62
|
+
self.client_program_info = ClientProgramInfo(clientInfo=ClientInfo(clientname="My Tool"))
|
|
63
|
+
self.clientname = "My Tool"
|
|
64
|
+
self.network_id = ""
|
|
65
|
+
|
|
66
|
+
def create_channel(self, host, port):
|
|
67
|
+
return create_umbra_channel(host, port)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
async def main():
|
|
71
|
+
client = UmbraConnectionClient(Data())
|
|
72
|
+
client.broadcast_received += lambda args: print("broadcast", args.message)
|
|
73
|
+
await client.connect()
|
|
74
|
+
await client.report_ready_to_work(ReadyToWorkState(readyToWork=True))
|
|
75
|
+
...
|
|
76
|
+
await client.disconnect()
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
asyncio.run(main())
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`get_local_ipv4_addresses` lists every interface if the optional [`ifaddr`](https://pypi.org/project/ifaddr/) package is installed; without it, it falls back to the host name lookup and the default route.
|
|
83
|
+
|