Skip to content

Int

Represents a single 32-bit signed integer. This datatype is used as input or output wherever a scalar integer value is required in the Telekinesis ecosystem.

Field

Required

FieldTypeDescription
valueintThe integer value; 32-bit signed, Python built-in type int.

Optional

None.

Example

From the datatypes examples:

python
from datatypes import datatypes
from loguru import logger

# ------------------------------------------------
# 1. Create Int instance
# ------------------------------------------------
int_val = datatypes.Int(42)

# ------------------------------------------------
# 2. Access value
# ------------------------------------------------
logger.info("Int value={}", int_val.value)