pixano.app.models.datasets
DatasetBrowser(**data)
Bases: BaseModel
Data for Dataset Browser page.
Attributes:
Source code in pydantic/main.py
DatasetModel(**data)
Bases: BaseModel
The model of a dataset.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
Dataset ID. |
path |
Path
|
Path to the dataset. |
previews_path |
Path
|
Path to the previews. |
media_dir |
Path
|
Path to the media directory. |
thumbnail |
Path
|
Path to the thumbnail. |
dataset_schema |
DatasetSchema
|
The dataset schema. |
feature_values |
DatasetFeaturesValues
|
The feature values of the dataset. |
info |
DatasetInfoModel
|
The dataset info. |
Source code in pydantic/main.py
from_dataset(dataset)
classmethod
Create a dataset model from a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset
|
Dataset
|
The dataset. |
required |
Returns:
Type | Description |
---|---|
Self
|
The dataset model. |
Source code in pixano/app/models/datasets.py
from_json(data)
classmethod
Create a dataset model from a JSON object.
Parameters:
Returns:
Type | Description |
---|---|
Self
|
Dataset model. |
Source code in pixano/app/models/datasets.py
PaginationColumn(**data)
Bases: BaseModel
Column description.
Attributes:
Source code in pydantic/main.py
PaginationInfo(**data)
Bases: BaseModel
Pagination info.
Attributes:
Source code in pydantic/main.py
TableData(**data)
Bases: BaseModel
Table data.
Attributes: