pixano.app.routers.datasets
get_dataset(id, settings)
async
Load dataset from ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
Dataset ID to load. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
DatasetModel
|
Dataset model. |
Source code in pixano/app/routers/datasets.py
get_dataset_info(id, settings)
async
Load a single dataset information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
Dataset ID to load info from. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
DatasetInfoModel
|
The dataset info. |
Source code in pixano/app/routers/datasets.py
get_datasets_info(settings)
async
Load a list of dataset information.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
list[DatasetInfoModel]
|
List of dataset info. |
Source code in pixano/app/routers/datasets.py
get_table_count(id, table, settings)
async
Get the number of rows in a table.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
Dataset ID containing the table. |
required |
table
|
str
|
Table name. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
int
|
The number of rows in the table. |