state

class naz.state.CommandStatus[source]

Bases: tuple

An SMPP command status

code

Alias for field number 0

description

Alias for field number 2

value

Alias for field number 1

class naz.state.DataCoding[source]

Bases: tuple

An SMPP data encoding.

code

Alias for field number 0

description

Alias for field number 2

value

Alias for field number 1

class naz.state.OptionalTag(name, value)[source]

Bases: object

An SMPP OptionalTag.

Optional Parameters MUST always appear at the end of a message, in the Optional Parameters section of the SMPP PDU. However, they may be included in ANY ORDER within the Optional Parameters section of the SMPP PDU and NEED NOT be encoded in the order presented in the smpp document.

see section 5.3.2 of smpp ver 3.4 spec document.

__init__(name, value)[source]
Parameters
  • name (str) – the name of the SMPP optional parameter.

  • value (Union[int, str, bool]) – the value of the parameter

Return type

None

property length

Returns the Value field of an optional smpp parameter. The Length field indicates the length of the Value field in octets(integer).

Return type

int

property tag

Returns the Tag field of an optional smpp parameter. The Tag field is used to uniquely identify the particular optional parameter in question.

Return type

int

property tlv

Returns the bytes representation of an optional smpp parameter.

Return type

bytes

property value

Returns the Value field of an optional smpp parameter. The Value field contains the actual data for the optional parameter in question.

Return type

Union[int, str, bool]

class naz.state.SmppCommand[source]

Bases: object

Represensts the various SMPP commands.

class naz.state.SmppCommandStatus[source]

Bases: object

Represensts the various SMPP commands statuses.

class naz.state.SmppDataCoding[source]

Bases: object

Represensts the various SMPP data encodings.

class naz.state.SmppSessionState[source]

Bases: object

Represensts the states in which an SMPP session can be in.