dp3.common.datatype ¶
AnyEidT
module-attribute
¶
Type alias for any of possible entity ID data types.
Note that the type is determined based on the loaded entity configuration and in most cases is only one of the options, based on what entity is being processed.
ReadOnly ¶
Bases: BaseModel
The ReadOnly data_type is used to avoid datapoint insertion for an attribute.
DataType ¶
Bases: RootModel
Data type container
Represents one of primitive data types:
- tag
- binary
- string
- int
- int64
- float
- ipv4
- ipv6
- mac
- time
- special
- json
or composite data type:
- link
- array
- set
- dict
- category
type_info
property
¶
String representation of the data type, immune to whitespace changes
mirror_as
property
¶
If mirror_link
, what is the name of the mirrored attribute
determine_value_validator ¶
get_linked_entity ¶
Returns linked entity id. Raises ValueError if DataType is not a link.
link_has_data ¶
Whether link has data. Raises ValueError if DataType is not a link.