.remoting Package

Module Contents

Allows for connecting to tango devices from a remote client going through a tango gql service.

The remoting package implements the Abstract Tango Device and Devices Query as a client making remote calls to a tango device via a tango bridge service.

Subpackages

Submodules

.remote_devices Module

.testing Module

Objects that can be used to substitute external dependencies for test purposes.

class TestSubscriber[source]

Bases: ska_ser_skallop.subscribing.base.Subscriber

Implements a subscriber that generates a log message for every event pushed.

This can be used during exploration testing of tango bridge and remote device proxy.

events(timeout=2) Generator[Any, None, None][source]

Generate events as and when they arrive.

E.g.

for event in subscriber.events():
    print(event)
Parameters

timeout (int, optional) – The maximum time to wait for any incoming message, defaults to 2

Yield

[description]

log_events(nr_of_events: int, timeout=2)[source]

Generate a log message for each log event received up till now and block if events empty.

Parameters
  • nr_of_events (int) – The nr of events to retrieve from the buffer.

  • timeout (int, optional) – The maximum time to wait for any incoming message, defaults to 2

push_event(event: ska_ser_skallop.subscribing.base.EventDataInt) None[source]

Receive subscribed event.

Parameters

event (base.EventDataInt) – The event from producer.