pixano.features.schemas.views.view
View(created_at=None, updated_at=None, **data)
Bases: BaseSchema
View base class.
Views are used to define a view in a dataset such as an image, a point cloud, a text. It can refer to an item and a parent view.
Attributes:
Name | Type | Description |
---|---|---|
item_ref |
ItemRef
|
Reference to the view's item. |
parent_ref |
ViewRef
|
Reference to the view's parent view. |
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 view's item.
parent: View
property
Get the view's parent view.