Enumerations & other classes¶
Enumerations¶
-
class
PyTango.
LockerLanguage
¶ An enumeration representing the programming language in which the client application who locked is written.
- CPP : C++/Python language
- JAVA : Java language
New in PyTango 7.0.0
-
class
PyTango.
CmdArgType
¶ An enumeration representing the command argument type.
- DevVoid
- DevBoolean
- DevShort
- DevLong
- DevFloat
- DevDouble
- DevUShort
- DevULong
- DevString
- DevVarCharArray
- DevVarShortArray
- DevVarLongArray
- DevVarFloatArray
- DevVarDoubleArray
- DevVarUShortArray
- DevVarULongArray
- DevVarStringArray
- DevVarLongStringArray
- DevVarDoubleStringArray
- DevState
- ConstDevString
- DevVarBooleanArray
- DevUChar
- DevLong64
- DevULong64
- DevVarLong64Array
- DevVarULong64Array
- DevInt
- DevEncoded
- DevEnum
- DevPipeBlob
-
class
PyTango.
MessBoxType
¶ An enumeration representing the MessBoxType
- STOP
- INFO
New in PyTango 7.0.0
-
class
PyTango.
PollObjType
¶ An enumeration representing the PollObjType
- POLL_CMD
- POLL_ATTR
- EVENT_HEARTBEAT
- STORE_SUBDEV
New in PyTango 7.0.0
-
class
PyTango.
PollCmdCode
¶ An enumeration representing the PollCmdCode
- POLL_ADD_OBJ
- POLL_REM_OBJ
- POLL_START
- POLL_STOP
- POLL_UPD_PERIOD
- POLL_REM_DEV
- POLL_EXIT
- POLL_REM_EXT_TRIG_OBJ
- POLL_ADD_HEARTBEAT
- POLL_REM_HEARTBEAT
New in PyTango 7.0.0
-
class
PyTango.
SerialModel
¶ An enumeration representing the type of serialization performed by the device server
- BY_DEVICE
- BY_CLASS
- BY_PROCESS
- NO_SYNC
-
class
PyTango.
AttReqType
¶ An enumeration representing the type of attribute request
- READ_REQ
- WRITE_REQ
-
class
PyTango.
LockCmdCode
¶ An enumeration representing the LockCmdCode
- LOCK_ADD_DEV
- LOCK_REM_DEV
- LOCK_UNLOCK_ALL_EXIT
- LOCK_EXIT
New in PyTango 7.0.0
-
class
PyTango.
LogLevel
¶ An enumeration representing the LogLevel
- LOG_OFF
- LOG_FATAL
- LOG_ERROR
- LOG_WARN
- LOG_INFO
- LOG_DEBUG
New in PyTango 7.0.0
-
class
PyTango.
LogTarget
¶ An enumeration representing the LogTarget
- LOG_CONSOLE
- LOG_FILE
- LOG_DEVICE
New in PyTango 7.0.0
-
class
PyTango.
EventType
¶ An enumeration representing event type
- CHANGE_EVENT
- QUALITY_EVENT
- PERIODIC_EVENT
- ARCHIVE_EVENT
- USER_EVENT
- ATTR_CONF_EVENT
- DATA_READY_EVENT
DATA_READY_EVENT - New in PyTango 7.0.0
-
class
PyTango.
KeepAliveCmdCode
¶ An enumeration representing the KeepAliveCmdCode
- EXIT_TH
New in PyTango 7.0.0
-
class
PyTango.
AccessControlType
¶ An enumeration representing the AccessControlType
- ACCESS_READ
- ACCESS_WRITE
New in PyTango 7.0.0
-
class
PyTango.
asyn_req_type
¶ An enumeration representing the asynchronous request type
- POLLING
- CALLBACK
- ALL_ASYNCH
-
class
PyTango.
cb_sub_model
¶ An enumeration representing callback sub model
- PUSH_CALLBACK
- PULL_CALLBACK
-
class
PyTango.
AttrQuality
¶ An enumeration representing the attribute quality
- ATTR_VALID
- ATTR_INVALID
- ATTR_ALARM
- ATTR_CHANGING
- ATTR_WARNING
-
class
PyTango.
AttrWriteType
¶ An enumeration representing the attribute type
- READ
- READ_WITH_WRITE
- WRITE
- READ_WRITE
-
class
PyTango.
AttrDataFormat
¶ An enumeration representing the attribute format
- SCALAR
- SPECTRUM
- IMAGE
- FMT_UNKNOWN
-
class
PyTango.
PipeWriteType
¶ An enumeration representing the pipe type
- PIPE_READ
- PIPE_READ_WRITE
-
class
PyTango.
DevSource
¶ An enumeration representing the device source for data
- DEV
- CACHE
- CACHE_DEV
-
class
PyTango.
ErrSeverity
¶ An enumeration representing the error severity
- WARN
- ERR
- PANIC
-
class
PyTango.
DevState
¶ An enumeration representing the device state
- ON
- OFF
- CLOSE
- OPEN
- INSERT
- EXTRACT
- MOVING
- STANDBY
- FAULT
- INIT
- RUNNING
- ALARM
- DISABLE
- UNKNOWN
-
class
PyTango.
DispLevel
¶ An enumeration representing the display level
- OPERATOR
- EXPERT
-
class
PyTango.
GreenMode
¶ An enumeration representing the GreenMode
- Synchronous
- Futures
- Gevent
New in PyTango 8.1.0
Other classes¶
-
class
PyTango.
Release
¶ - Release information:
- name : (
str
) package name - version_info : (
tuple
) The five components of the version number: major, minor, micro, releaselevel, and serial. - version : (
str
) package version in format <major>.<minor>.<micro> - version_long : (
str
) package version in format <major>.<minor>.<micro><releaselevel><serial> - version_description : (
str
) short description for the current version - version_number : (
int
) <major>*100 + <minor>*10 + <micro> - description : (
str
) package description - long_description : (
str
) longer package description - authors : (dict<str(last name), tuple<str(full name),str(email)>>) package authors
- url : (
str
) package url - download_url : (
str
) package download url - platform : (
seq
) list of available platforms - keywords : (
seq
) list of keywords - license : (
str
) the license
- name : (
-
class
PyTango.
TimeVal
(a=None, b=None, c=None)¶ Time value structure with the following members:
- tv_sec : seconds
- tv_usec : microseconds
- tv_nsec : nanoseconds
-
static
fromdatetime
(dt) → TimeVal¶ A static method returning a
PyTango.TimeVal
object representing the givendatetime.datetime
Parameters: dt: ( datetime.datetime
) a datetime objectReturn: (
TimeVal
) representing the given timestampNew in version 7.1.0.
New in version 7.1.2: Documented
-
static
fromtimestamp
(ts) → TimeVal¶ A static method returning a
PyTango.TimeVal
object representing the given timestampParameters: ts: ( float
) a timestampReturn: (
TimeVal
) representing the given timestampNew in version 7.1.0.
-
isoformat
(self, sep='T') → str¶ Returns a string in ISO 8601 format, YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM]
Parameters: sep : (str) sep is used to separate the year from the time, and defaults to ‘T’ Return: ( str
) a string representing the time according to a format specification.New in version 7.1.0.
New in version 7.1.2: Documented
Changed in version 7.1.2: The sep parameter is not mandatory anymore and defaults to ‘T’ (same as
datetime.datetime.isoformat()
)
-
static
now
() → TimeVal¶ A static method returning a
PyTango.TimeVal
object representing the current timeParameters: None Return: ( TimeVal
) representing the current timeNew in version 7.1.0.
New in version 7.1.2: Documented
-
strftime
(self, format) → str¶ Convert a time value to a string according to a format specification.
Parameters: format : (str) See the python library reference manual for formatting codes Return: ( str
) a string representing the time according to a format specification.New in version 7.1.0.
New in version 7.1.2: Documented
-
todatetime
(self) → datetime.datetime¶ Returns a
datetime.datetime
object representing the same time valueParameters: None Return: ( datetime.datetime
) the time value in datetime formatNew in version 7.1.0.
-
totime
(self) → float¶ Returns a float representing this time value
Parameters: None Return: a float representing the time value New in version 7.1.0.