pixano.app.models.sources
SourceModel(created_at=None, updated_at=None, **data)
Bases: BaseSchemaModel[Source]
Model for the Source schema.
Source code in pixano/app/models/base_schema.py
from_row(row, table_info)
classmethod
Create a SourceModel from a Source.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
row
|
Source
|
The row to create the model from. |
required |
table_info
|
TableInfo
|
The table info of the row. |
required |
Returns:
Type | Description |
---|---|
Self
|
The created model. |
Source code in pixano/app/models/sources.py
to_row(dataset)
Create a Source from the model.