pyg90alarm.const

Definies different constants for G90 alarm panel.

enum pyg90alarm.const.G90CommandsBase(value)

Bases: IntEnum

Base class for G90Commands and G90SystemCommands to allow proper typing with subclasses of G90BaseCommand.

Member Type:

int

The Enum and its members have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90Commands(value)

Bases: G90CommandsBase

Defines the alarm panel commands and their codes.

The list consists of the entities known so far, and does not pretend to be comprehensive or complete.

Member Type:

int

Valid values are as follows:

NONE = <G90Commands.NONE: 0>

Pseudo command, to be used for proper typing with subclasses of G90BaseCommand invoking its constructor but implementing special processing

GETHOSTSTATUS = <G90Commands.GETHOSTSTATUS: 100>

Get host status

SETHOSTSTATUS = <G90Commands.SETHOSTSTATUS: 101>

Set host status

GETHOSTINFO = <G90Commands.GETHOSTINFO: 206>
GETHISTORY = <G90Commands.GETHISTORY: 200>
GETSENSORLIST = <G90Commands.GETSENSORLIST: 102>

Get list of sensors

Note

Paginated command, see G90PaginatedResult

SETSINGLESENSOR = <G90Commands.SETSINGLESENSOR: 103>
DELSENSOR = <G90Commands.DELSENSOR: 131>
ADDSENSOR = <G90Commands.ADDSENSOR: 156>
LEARNSENSOR = <G90Commands.LEARNSENSOR: 157>
CANCELLEARNSENSOR = <G90Commands.CANCELLEARNSENSOR: 163>
DELALLSENSORS = <G90Commands.DELALLSENSORS: 202>
ADDDEVICE = <G90Commands.ADDDEVICE: 134>
REGDEVICE = <G90Commands.REGDEVICE: 135>
DELDEVICE = <G90Commands.DELDEVICE: 136>
CONTROLDEVICE = <G90Commands.CONTROLDEVICE: 137>
GETDEVICELIST = <G90Commands.GETDEVICELIST: 138>

Get list of devices (switches)

Note

Paginated command, see G90PaginatedResult

GETSINGLEDEVICE = <G90Commands.GETSINGLEDEVICE: 139>
SETSINGLEDEVICE = <G90Commands.SETSINGLEDEVICE: 140>
SENDREGDEVICERESULT = <G90Commands.SENDREGDEVICERESULT: 162>
DELALLDEVICES = <G90Commands.DELALLDEVICES: 203>
GETHOSTCONFIG = <G90Commands.GETHOSTCONFIG: 106>
SETHOSTCONFIG = <G90Commands.SETHOSTCONFIG: 107>
SETALMPHONE = <G90Commands.SETALMPHONE: 108>
SETAUTOARM = <G90Commands.SETAUTOARM: 109>
GETSIREN = <G90Commands.GETSIREN: 110>
SETSIREN = <G90Commands.SETSIREN: 111>
GETALMPHONE = <G90Commands.GETALMPHONE: 114>
GETAUTOARM = <G90Commands.GETAUTOARM: 115>
SETNOTICEFLAG = <G90Commands.SETNOTICEFLAG: 116>
GETNOTICEFLAG = <G90Commands.GETNOTICEFLAG: 117>
SETFACTORY = <G90Commands.SETFACTORY: 118>
GETALARM = <G90Commands.GETALARM: 119>
SETROOMINFO = <G90Commands.SETROOMINFO: 141>
GETROOMINFO = <G90Commands.GETROOMINFO: 142>
ADDROOM = <G90Commands.ADDROOM: 158>
DELROOM = <G90Commands.DELROOM: 159>
ADDSCENE = <G90Commands.ADDSCENE: 143>
DELSCENE = <G90Commands.DELSCENE: 144>
CTLSCENE = <G90Commands.CTLSCENE: 145>
GETSCENELIST = <G90Commands.GETSCENELIST: 146>

Get list of scenes

Note

Paginated command, see G90PaginatedResult

GETSINGLESCENE = <G90Commands.GETSINGLESCENE: 147>
SETSINGLESCENE = <G90Commands.SETSINGLESCENE: 148>
GETROOMANDSCENE = <G90Commands.GETROOMANDSCENE: 149>
DELALLSCENES = <G90Commands.DELALLSCENES: 204>
ADDIFTTT = <G90Commands.ADDIFTTT: 150>
DELIFTTT = <G90Commands.DELIFTTT: 151>
GETIFTTTLIST = <G90Commands.GETIFTTTLIST: 152>

Get list of if-then-else scenarios

Note

Paginated command, see G90PaginatedResult

GETSINGLEIFTTT = <G90Commands.GETSINGLEIFTTT: 153>
SETSINGLEIFTTT = <G90Commands.SETSINGLEIFTTT: 154>
IFTTTREQTIMERID = <G90Commands.IFTTTREQTIMERID: 164>
DELALLIFTTT = <G90Commands.DELALLIFTTT: 205>
GETUSERDATACRC = <G90Commands.GETUSERDATACRC: 160>
GETFPLOCKLIST = <G90Commands.GETFPLOCKLIST: 165>

Get list of fingerprint scanners

Note

Paginated command, see G90PaginatedResult

SETFPLOCKNAME = <G90Commands.SETFPLOCKNAME: 166>
GETFPLOCKUSERNAME = <G90Commands.GETFPLOCKUSERNAME: 167>
SETFPLOCKUSERNAME = <G90Commands.SETFPLOCKUSERNAME: 168>
DELALLLOCK = <G90Commands.DELALLLOCK: 223>
GETAPINFO = <G90Commands.GETAPINFO: 212>
SETAPINFO = <G90Commands.SETAPINFO: 213>
PINGBYGPRS = <G90Commands.PINGBYGPRS: 218>
PING = <G90Commands.PING: 219>
GETSIA = <G90Commands.GETSIA: 230>
SETSIA = <G90Commands.SETSIA: 231>
GETCID = <G90Commands.GETCID: 232>
SETCID = <G90Commands.SETCID: 233>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90SystemCommands(value)

Bases: G90CommandsBase

Defines system commands for the G90 alarm panel.

Member Type:

int

Valid values are as follows:

GET_CONFIGURATION = <G90SystemCommands.GET_CONFIGURATION: 0>
SET_CONFIGURATION = <G90SystemCommands.SET_CONFIGURATION: 1>
GSM_REBOOT = <G90SystemCommands.GSM_REBOOT: 1129>
MCU_REBOOT = <G90SystemCommands.MCU_REBOOT: 1123>
WIFI_REBOOT = <G90SystemCommands.WIFI_REBOOT: 1006>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90SystemConfigurationCommands(value)

Bases: IntEnum

Defines sub-commands for getting/setting system configuration.

Applicable only to G90SystemCommands.GET_CONFIGURATION and G90SystemCommands.SET_CONFIGURATION commands above.

Member Type:

int

Valid values are as follows:

SERVER_ADDRESS = <G90SystemConfigurationCommands.SERVER_ADDRESS: 78>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90MessageTypes(value)

Bases: IntEnum

Defines message types (codes) from messages coming from the alarm panel.

Member Type:

int

Valid values are as follows:

NOTIFICATION = <G90MessageTypes.NOTIFICATION: 170>
ALERT = <G90MessageTypes.ALERT: 208>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90NotificationTypes(value)

Bases: IntEnum

Defines types of notifications sent by the alarm panel.

Member Type:

int

Valid values are as follows:

ARM_DISARM = <G90NotificationTypes.ARM_DISARM: 1>
SENSOR_CHANGE = <G90NotificationTypes.SENSOR_CHANGE: 4>
SENSOR_ACTIVITY = <G90NotificationTypes.SENSOR_ACTIVITY: 5>
DOOR_OPEN_WHEN_ARMING = <G90NotificationTypes.DOOR_OPEN_WHEN_ARMING: 6>
FIRMWARE_UPDATING = <G90NotificationTypes.FIRMWARE_UPDATING: 8>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90ArmDisarmTypes(value)

Bases: IntEnum

Defines arm/disarm states of the device, applicable both for setting device state and one the device sends in notification messages.

Member Type:

int

Valid values are as follows:

ARM_AWAY = <G90ArmDisarmTypes.ARM_AWAY: 1>
ARM_HOME = <G90ArmDisarmTypes.ARM_HOME: 2>
DISARM = <G90ArmDisarmTypes.DISARM: 3>
ALARMED = <G90ArmDisarmTypes.ALARMED: 4>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90AlertTypes(value)

Bases: IntEnum

Defines types of alerts sent by the alarm panel.

Member Type:

int

Valid values are as follows:

HOST_SOS = <G90AlertTypes.HOST_SOS: 1>
STATE_CHANGE = <G90AlertTypes.STATE_CHANGE: 2>
ALARM = <G90AlertTypes.ALARM: 3>
SENSOR_ACTIVITY = <G90AlertTypes.SENSOR_ACTIVITY: 4>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90AlertSources(value)

Bases: IntEnum

Defines possible sources of the alert sent by the panel.

Member Type:

int

Valid values are as follows:

DEVICE = <G90AlertSources.DEVICE: 0>
SENSOR = <G90AlertSources.SENSOR: 1>
TAMPER = <G90AlertSources.TAMPER: 3>
INFRARED = <G90AlertSources.INFRARED: 8>
REMOTE = <G90AlertSources.REMOTE: 10>
RFID = <G90AlertSources.RFID: 11>
DOORBELL = <G90AlertSources.DOORBELL: 12>
FINGERPRINT = <G90AlertSources.FINGERPRINT: 15>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90CommonSensorAlertStates(value)

Bases: IntEnum

Defines possible states of the alert sent by most sensors.

Member Type:

int

Valid values are as follows:

DOOR_CLOSE = <G90CommonSensorAlertStates.DOOR_CLOSE: 0>
DOOR_OPEN = <G90CommonSensorAlertStates.DOOR_OPEN: 1>
SOS = <G90CommonSensorAlertStates.SOS: 2>
TAMPER = <G90CommonSensorAlertStates.TAMPER: 3>
LOW_BATTERY = <G90CommonSensorAlertStates.LOW_BATTERY: 4>
ALARM = <G90CommonSensorAlertStates.ALARM: 254>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90InfraredAlertStates(value)

Bases: IntEnum

Defines possible states of the alerts sent by infrared sensors.

Member Type:

int

Valid values are as follows:

MOTION_DETECTED = <G90InfraredAlertStates.MOTION_DETECTED: 0>
TAMPER = <G90InfraredAlertStates.TAMPER: 1>
LOW_BATTERY = <G90InfraredAlertStates.LOW_BATTERY: 2>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90AlertStates(value)

Bases: IntEnum

Defines consolidated states of the alert sent by infrared and other sensors.

By a reason the infrared sensors use different codes for their alert states, this enum consolidates them into a single set for unification.

Member Type:

int

Valid values are as follows:

DOOR_CLOSE = <G90AlertStates.DOOR_CLOSE: 0>
DOOR_OPEN = <G90AlertStates.DOOR_OPEN: 1>
SOS = <G90AlertStates.SOS: 2>
TAMPER = <G90AlertStates.TAMPER: 3>
LOW_BATTERY = <G90AlertStates.LOW_BATTERY: 4>
MOTION_DETECTED = <G90AlertStates.MOTION_DETECTED: 5>
ALARM = <G90AlertStates.ALARM: 254>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90AlertStateChangeTypes(value)

Bases: IntEnum

Defines types of alert for device state changes.

Member Type:

int

Valid values are as follows:

AC_POWER_FAILURE = <G90AlertStateChangeTypes.AC_POWER_FAILURE: 1>
AC_POWER_RECOVER = <G90AlertStateChangeTypes.AC_POWER_RECOVER: 2>
DISARM = <G90AlertStateChangeTypes.DISARM: 3>
ARM_AWAY = <G90AlertStateChangeTypes.ARM_AWAY: 4>
ARM_HOME = <G90AlertStateChangeTypes.ARM_HOME: 5>
LOW_BATTERY = <G90AlertStateChangeTypes.LOW_BATTERY: 6>
WIFI_CONNECTED = <G90AlertStateChangeTypes.WIFI_CONNECTED: 7>
WIFI_DISCONNECTED = <G90AlertStateChangeTypes.WIFI_DISCONNECTED: 8>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90HistoryStates(value)

Bases: IntEnum

Defines possible states for history entities.

Member Type:

int

Valid values are as follows:

DOOR_CLOSE = <G90HistoryStates.DOOR_CLOSE: 1>
DOOR_OPEN = <G90HistoryStates.DOOR_OPEN: 2>
TAMPER = <G90HistoryStates.TAMPER: 3>
ALARM = <G90HistoryStates.ALARM: 4>
AC_POWER_FAILURE = <G90HistoryStates.AC_POWER_FAILURE: 5>
AC_POWER_RECOVER = <G90HistoryStates.AC_POWER_RECOVER: 6>
DISARM = <G90HistoryStates.DISARM: 7>
ARM_AWAY = <G90HistoryStates.ARM_AWAY: 8>
ARM_HOME = <G90HistoryStates.ARM_HOME: 9>
LOW_BATTERY = <G90HistoryStates.LOW_BATTERY: 10>
WIFI_CONNECTED = <G90HistoryStates.WIFI_CONNECTED: 11>
WIFI_DISCONNECTED = <G90HistoryStates.WIFI_DISCONNECTED: 12>
REMOTE_BUTTON_ARM_AWAY = <G90HistoryStates.REMOTE_BUTTON_ARM_AWAY: 13>
REMOTE_BUTTON_ARM_HOME = <G90HistoryStates.REMOTE_BUTTON_ARM_HOME: 14>
REMOTE_BUTTON_DISARM = <G90HistoryStates.REMOTE_BUTTON_DISARM: 15>
REMOTE_BUTTON_SOS = <G90HistoryStates.REMOTE_BUTTON_SOS: 16>
RFID_KEY_ARM_AWAY = <G90HistoryStates.RFID_KEY_ARM_AWAY: 17>
RFID_KEY_ARM_HOME = <G90HistoryStates.RFID_KEY_ARM_HOME: 18>
RFID_KEY_DISARM = <G90HistoryStates.RFID_KEY_DISARM: 19>
RFID_CARD_0 = <G90HistoryStates.RFID_CARD_0: 20>
RFID_CARD_1 = <G90HistoryStates.RFID_CARD_1: 21>
RFID_CARD_2 = <G90HistoryStates.RFID_CARD_2: 22>
RFID_CARD_3 = <G90HistoryStates.RFID_CARD_3: 23>
RFID_CARD_4 = <G90HistoryStates.RFID_CARD_4: 24>
MOTION_DETECTED = <G90HistoryStates.MOTION_DETECTED: 25>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90RemoteButtonStates(value)

Bases: IntEnum

Defines possible states for remote control buttons.

Member Type:

int

Valid values are as follows:

ARM_AWAY = <G90RemoteButtonStates.ARM_AWAY: 0>
ARM_HOME = <G90RemoteButtonStates.ARM_HOME: 1>
DISARM = <G90RemoteButtonStates.DISARM: 2>
SOS = <G90RemoteButtonStates.SOS: 3>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

enum pyg90alarm.const.G90RFIDKeypadStates(value)

Bases: IntEnum

Defines possible states for RFID keypads.

Member Type:

int

Valid values are as follows:

ARM_AWAY = <G90RFIDKeypadStates.ARM_AWAY: 0>
ARM_HOME = <G90RFIDKeypadStates.ARM_HOME: 1>
DISARM = <G90RFIDKeypadStates.DISARM: 2>
LOW_BATTERY = <G90RFIDKeypadStates.LOW_BATTERY: 5>
CARD_0 = <G90RFIDKeypadStates.CARD_0: 6>
CARD_1 = <G90RFIDKeypadStates.CARD_1: 7>
CARD_2 = <G90RFIDKeypadStates.CARD_2: 8>
CARD_3 = <G90RFIDKeypadStates.CARD_3: 9>
CARD_4 = <G90RFIDKeypadStates.CARD_4: 10>

The Enum and its members also have the following methods:

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms