4.2.1. thuner.option.attribute
Classes for object attribute options.
- pydantic model thuner.option.attribute.Attribute[source]
Bases:
BaseOptionsBase attribute description class. An “attribute” will become a column of a pandas dataframe, csv file, sql table, etc.
- Fields:
- Validators:
check_data_type»all fields
- pydantic model thuner.option.attribute.AttributeGroup[source]
Bases:
BaseOptionsA group of related attributes retrieved by the same method, e.g. lat/lon or u/v.
- Fields:
- Validators:
check_retrieval»all fields
- pydantic model thuner.option.attribute.AttributeType[source]
Bases:
BaseOptionsAttribute type options. Each “attribute type” contains attributes and attribute groups, and will form a single pandas dataframe, csv file, sql table, etc.
- Fields:
- Validators:
initialize_lookup»all fields
- field attributes: list[Attribute | AttributeGroup] [Required]
Attributes and attribute groups comprising the attribute type.
- attribute_by_name(name: str) Attribute | AttributeGroup[source]
Get an attribute by name.
- pydantic model thuner.option.attribute.Attributes[source]
Bases:
BaseOptionsClass for storing all the attribute options for a given object.
- Fields:
- Validators:
initialize_lookup»all fields
- field attribute_types: list[AttributeType] [Required]
Attribute types of the object.
- field member_attributes: dict[str, Attributes] | None = None
List of object attributes for the member objects.
- attribute_type_by_name(name: str) AttributeType[source]
Get an attribute type by name.
- pydantic model thuner.option.attribute.Retrieval[source]
Bases:
BaseOptionsClass for retrieval. Generally a function and a dictionary of kwargs.
- Fields:
function (Callable | str | None)keyword_arguments (dict)type (Literal['Retrieval'])
- Validators:
check_function»all fields