Rapidata order
RapidataOrder #
RapidataOrder(
name: str,
order_id: str,
openapi_service: OpenAPIService,
dataset: Optional[RapidataDataset] = None,
)
An instance of a Rapidata order.
Used to interact with a specific order in the Rapidata system. Such as starting, pausing, and getting the results of the order.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the order. |
required |
order_id
|
str
|
The ID of the order. |
required |
openapi_service
|
OpenAPIService
|
The OpenAPIService instance used to interact with the Rapidata API. |
required |
dataset
|
Optional[RapidataDataset]
|
The optional Dataset associated with the order. |
None
|
Source code in src/rapidata/rapidata_client/order/rapidata_order.py
dataset
property
#
The dataset associated with the order. Returns: The RapidataDataset instance.
run #
Runs the order for to start collecting votes.
Source code in src/rapidata/rapidata_client/order/rapidata_order.py
pause #
get_status #
Gets the status of the order.
Returns:
Type | Description |
---|---|
str
|
The status of the order. |
display_progress_bar #
Displays a progress bar for the order processing using tqdm.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
refresh_rate
|
int
|
How often to refresh the progress bar, in seconds. |
5
|
Source code in src/rapidata/rapidata_client/order/rapidata_order.py
get_results #
Gets the results of the order. If the order is still processing, this method will block until the order is completed and then return the results.
Returns:
Type | Description |
---|---|
dict[str, Any]
|
The results of the order. |