pixano.app.routers.dataset_items
create_dataset_item(dataset_id, id, dataset_item, settings)
async
Add a dataset item.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID to add the item. |
required |
id
|
str
|
Dataset item ID to add. |
required |
dataset_item
|
DatasetItemModel
|
Dataset item. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
DatasetItemModel
|
The dataset item added. |
Source code in pixano/app/routers/dataset_items.py
create_dataset_items(dataset_id, dataset_items, settings)
async
Add dataset items in a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID to add the items. |
required |
dataset_items
|
list[DatasetItemModel]
|
Dataset items to add. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
list[DatasetItemModel]
|
List of dataset items added. |
Source code in pixano/app/routers/dataset_items.py
delete_dataset_item(dataset_id, id, settings)
async
Delete a dataset item from a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID containing the item. |
required |
id
|
str
|
ID of the dataset item to delete. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Source code in pixano/app/routers/dataset_items.py
delete_dataset_items(dataset_id, ids, settings)
async
Delete dataset items from a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID containing the items. |
required |
ids
|
Annotated[list[str], Query()]
|
IDs of the dataset items to delete. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Source code in pixano/app/routers/dataset_items.py
get_dataset_item(dataset_id, id, settings)
async
Get dataset item from a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID. |
required |
id
|
str
|
Dataset item ID. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
DatasetItemModel
|
The dataset item. |
Source code in pixano/app/routers/dataset_items.py
get_dataset_items(dataset_id, settings, ids=Query(None), limit=None, skip=0)
async
Get dataset items from a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID containing the items. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
ids
|
list[str] | None
|
IDs of the dataset items. |
Query(None)
|
limit
|
int | None
|
Limit number of dataset items. |
None
|
skip
|
int
|
Skip number of dataset items. |
0
|
Returns:
Type | Description |
---|---|
list[DatasetItemModel]
|
List of dataset items. |
Source code in pixano/app/routers/dataset_items.py
update_dataset_item(dataset_id, id, dataset_item, settings)
async
Update dataset item in a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID containing the item. |
required |
id
|
str
|
Dataset item ID to update. |
required |
dataset_item
|
DatasetItemModel
|
Dataset item. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
DatasetItemModel
|
The dataset item updated. |
Source code in pixano/app/routers/dataset_items.py
update_dataset_items(dataset_id, dataset_items, settings)
async
Update dataset items in a dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_id
|
str
|
Dataset ID containing the items. |
required |
dataset_items
|
list[DatasetItemModel]
|
Dataset items to update. |
required |
settings
|
Annotated[Settings, Depends(get_settings)]
|
App settings. |
required |
Returns:
Type | Description |
---|---|
list[DatasetItemModel]
|
List of dataset items updated. |