Skip to content

values

Attributes

DEFAULT_SCALAR_DATATYPE_CHARACTERISTICS = DataTypeCharacteristics.construct(is_scalar=True, is_json_serializable=True) module-attribute

Classes

ValueStatus

Bases: Enum

Source code in kiara/models/values/__init__.py
13
14
15
16
17
18
19
class ValueStatus(Enum):

    UNKNONW = "unknown"
    NOT_SET = "not set"
    NONE = "none"
    DEFAULT = "default"
    SET = "set"

Attributes

UNKNONW = 'unknown' class-attribute
NOT_SET = 'not set' class-attribute
NONE = 'none' class-attribute
DEFAULT = 'default' class-attribute
SET = 'set' class-attribute

DataTypeCharacteristics

Bases: BaseModel

Source code in kiara/models/values/__init__.py
22
23
24
25
26
27
28
29
30
31
class DataTypeCharacteristics(BaseModel):

    is_scalar: bool = Field(
        description="Whether the data desribed by this data type behaves like a skalar.",
        default=False,
    )
    is_json_serializable: bool = Field(
        description="Whether the data can be serialized to json without information loss.",
        default=False,
    )

Attributes

is_scalar: bool = Field(description='Whether the data desribed by this data type behaves like a skalar.', default=False) class-attribute
is_json_serializable: bool = Field(description='Whether the data can be serialized to json without information loss.', default=False) class-attribute