module documentation
FiftyOne operator execution.
Class |
|
Represents the execution context of an operator. |
Class |
|
Represents the execution options of an operation. |
Class |
|
Represents the status of an operator execution. |
Class |
|
Represents the result of an operator execution. |
Class |
|
Enumeration of the available operator run states. |
Class |
|
Handles the execution phase of the operator lifecycle. |
Class |
|
Represents a request to invoke an operator. |
Class |
|
Represents the validation context of an operator. |
Class |
|
A validation error. |
Exception |
|
An error that occurs while executing an operator. |
Async Function | do |
Undocumented |
Function | execute |
Executes the operator with the given name. |
Async Function | execute |
Executes the operator with the given name. |
Async Function | prepare |
Undocumented |
Async Function | resolve |
Resolves the execution options of the operator with the given name. |
Function | resolve |
Resolves the placement of the operator with the given name. |
Async Function | resolve |
Resolves the inputs property type of the operator with the given name. |
Async Function | resolve |
Resolves the "inputs" or "outputs" schema of an operator with the given context. |
Variable | logger |
Undocumented |
Function | _convert |
Undocumented |
Function | _parse |
Undocumented |
Executes the operator with the given name.
Parameters | |
operator | the URI of the operator |
ctx:None | a dictionary of parameters defining the execution context. The supported keys are:
|
**kwargs | you can optionally provide any of the supported ctx keys as keyword arguments rather than including them in ctx |
Returns | |
an ExecutionResult , or an asyncio.Task if you run this
method in a notebook context | |
Raises | |
ExecutionError | if an error occurred while immediately executing an operation or scheduling a delegated operation |
@coroutine_timeout( seconds=fo.config.operator_timeout)
async def execute_or_delegate_operator(operator_uri, request_params, exhaust=False): (source) ¶
async def execute_or_delegate_operator(operator_uri, request_params, exhaust=False): (source) ¶
Executes the operator with the given name.
Parameters | |
operator | the URI of the operator |
request | a dictionary of parameters for the operator |
exhaust:False | whether to immediately exhaust generator operators |
Returns | |
an ExecutionResult |
async def prepare_operator_executor(operator_uri, request_params, set_progress=None, delegated_operation_id=None):
(source)
¶
Undocumented
Resolves the execution options of the operator with the given name.
Parameters | |
registry | an fiftyone.operators.registry.OperatorRegistry |
operator | the URI of the operator |
request | a dictionary of request parameters |
Returns | |
a fiftyone.operators.executor.ExecutionOptions or None |
Resolves the placement of the operator with the given name.
Parameters | |
operator | the fiftyone.operators.operator.Operator |
request | a dictionary of request parameters |
Returns | |
the placement of the operator or None |
Resolves the inputs property type of the operator with the given name.
Parameters | |
registry | an fiftyone.operators.registry.OperatorRegistry |
operator | the URI of the operator |
request | a dictionary of request parameters |
Returns | |
the type of the inputs fiftyone.operators.types.Property of
the operator, or None |
Resolves the "inputs" or "outputs" schema of an operator with the given context.
Parameters | |
operator | the fiftyone.operators.Operator |
context | the ExecutionContext of an operator |
Returns | |
the "inputs" or "outputs" schema
fiftyone.operators.types.Property of an operator, or None |