taurus taurus

Previous topic

SimulationFactory

Next topic

taurus.core.tango.img

This Page

taurus.core.tangoΒΆ

Tango extension for taurus core mode. The Tango extension implements taurus.core objects that connect to Tango objects. The official scheme name is, obviously, ‘tango’. As Tango is the default taurus scheme, when specifing a tango model name, the scheme prefix (‘tango://’) can be omited.

You should never create objects of tango classes directly. Instead you should use the taurus.core.taurusmanager.TaurusManager and taurus.core.taurusfactory.TaurusFactory APIs to access all elements.

For example, to get a reference to the Tango attribute my/tango/device/state you should do something like:

>>> import taurus
>>> my_state = taurus.Attribute('tango://my/tango/device/state')

In fact, because the taurus default extension is Tango, you could omit the ‘tango://’ prefix from the previous code:

>>> import taurus
>>> my_state = taurus.Attribute('my/tango/device/state')

The same is applied to a device:

>>> import taurus
>>> my_device = taurus.Device('my/tango/device')

...to a database:

>>> import taurus
>>> db = taurus.Database('homer:10000')

...and an attribute configuration:

>>> import taurus
>>> me_state_config = taurus.Attribute('my/tango/device/state?configuration')

The way to get access to the Tango factory is:

>>> import taurus
>>> factory = taurus.Factory()

Modules

Classes