pixano.features.schemas.entities.entity
Entity(created_at=None, updated_at=None, **data)
Bases: BaseSchema
Entity
base class.
Entities are used to define an entity in a dataset such as an object, a track. It can refer to an item, a view, and a parent entity.
Attributes:
Name | Type | Description |
---|---|---|
item_ref |
ItemRef
|
Reference to the entity's item. |
view_ref |
ViewRef
|
Reference to the entity's view. |
parent_ref |
EntityRef
|
Reference to the entity's parent entity. |
Raises ValidationError
if the input data cannot be
validated to form a valid model.
self
is explicitly positional-only to allow self
as a field name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
created_at
|
datetime | None
|
The creation date of the object. |
None
|
updated_at
|
datetime | None
|
The last modification date of the object. |
None
|
data
|
Any
|
The data of the object validated by Pydantic. |
{}
|
Source code in pixano/features/schemas/base_schema.py
item: Item
property
Get the entity's item.
parent: Entity
property
Get the entity's parent entity.
view: View
property
Get the entity's view.