String
Represents a text string encoded as UTF-8. This datatype is used as input or output wherever a textual value is required in the Telekinesis ecosystem.
Field
Required
| Field | Type | Description |
|---|---|---|
value | str | The string value; Python built-in type str, UTF-8 encoded. |
Optional
None.
Example
From the datatypes examples:
python
from datatypes import datatypes
from loguru import logger
# ------------------------------------------------
# 1. Create String instance
# ------------------------------------------------
string_val = datatypes.String("Hello, Telekinesis!")
# ------------------------------------------------
# 2. Access value
# ------------------------------------------------
logger.info("String value={}", string_val.value)
