Module csw.KeyTypes

Classes

class KeyTypes (*args, **kwds)
Expand source code
class KeyTypes(Enum):
    ChoiceKey = 1
    StringKey = 2
    UTCTimeKey = 3
    TAITimeKey = 4
    EqCoordKey = 5
    SolarSystemCoordKey = 6
    MinorPlanetCoordKey = 7
    CometCoordKey = 8
    AltAzCoordKey = 9
    CoordKey = 10
    BooleanKey = 11
    CharKey = 12
    ByteKey = 13
    ShortKey = 14
    LongKey = 15
    IntKey = 16
    FloatKey = 17
    DoubleKey = 18
    ByteArrayKey = 19
    ShortArrayKey = 20
    LongArrayKey = 21
    IntArrayKey = 22
    FloatArrayKey = 23
    DoubleArrayKey = 24
    ByteMatrixKey = 25
    ShortMatrixKey = 26
    LongMatrixKey = 27
    IntMatrixKey = 28
    FloatMatrixKey = 29
    DoubleMatrixKey = 30

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

Color.RED

  • value lookup:

Color(1)

  • name lookup:

Color['RED']

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

Ancestors

  • enum.Enum

Class variables

var AltAzCoordKey

The type of the None singleton.

var BooleanKey

The type of the None singleton.

var ByteArrayKey

The type of the None singleton.

var ByteKey

The type of the None singleton.

var ByteMatrixKey

The type of the None singleton.

var CharKey

The type of the None singleton.

var ChoiceKey

The type of the None singleton.

var CometCoordKey

The type of the None singleton.

var CoordKey

The type of the None singleton.

var DoubleArrayKey

The type of the None singleton.

var DoubleKey

The type of the None singleton.

var DoubleMatrixKey

The type of the None singleton.

var EqCoordKey

The type of the None singleton.

var FloatArrayKey

The type of the None singleton.

var FloatKey

The type of the None singleton.

var FloatMatrixKey

The type of the None singleton.

var IntArrayKey

The type of the None singleton.

var IntKey

The type of the None singleton.

var IntMatrixKey

The type of the None singleton.

var LongArrayKey

The type of the None singleton.

var LongKey

The type of the None singleton.

var LongMatrixKey

The type of the None singleton.

var MinorPlanetCoordKey

The type of the None singleton.

var ShortArrayKey

The type of the None singleton.

var ShortKey

The type of the None singleton.

var ShortMatrixKey

The type of the None singleton.

var SolarSystemCoordKey

The type of the None singleton.

var StringKey

The type of the None singleton.

var TAITimeKey

The type of the None singleton.

var UTCTimeKey

The type of the None singleton.