pixano.app.routers.datasets
¶
get_dataset(id, settings)
¶
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)
¶
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_dataset_stats(id, settings)
¶
Get aggregate row counts per table, grouped by schema group.
This is a lightweight endpoint that only calls count_rows() per table, avoiding any item-level data materialization.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
Dataset ID. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
| Type | Description |
|---|---|
Dict of group_name -> {table_name
|
count}. |
Source code in pixano/app/routers/datasets.py
get_datasets_info(settings)
¶
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)
¶
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. |