fiftyone.operators.builtin¶
Builtin operators.
Classes:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions:
|
-
class
fiftyone.operators.builtin.
EditFieldInfo
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
CloneSelectedSamples
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
CloneSampleField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
CloneFrameField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
RenameSampleField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
RenameFrameField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
ClearSampleField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
ClearFrameField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteSelectedSamples
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteSelectedLabels
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteSampleField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteFrameField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
CreateIndex
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DropIndex
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
CreateSummaryField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
UpdateSummaryField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteSummaryField
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
AddGroupSlice
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
RenameGroupSlice
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteGroupSlice
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
ListSavedViews
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_input
(ctx)Returns the resolved input property.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
LoadSavedView
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
SaveView
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
EditSavedViewInfo
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteSavedView
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
ListWorkspaces
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_input
(ctx)Returns the resolved input property.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
LoadWorkspace
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
SaveWorkspace
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
EditWorkspaceInfo
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
DeleteWorkspace
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
SyncLastModifiedAt
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
resolve_input
(ctx)Returns the resolved input property.
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
class
fiftyone.operators.builtin.
ListFiles
(_builtin=False)¶ Bases:
fiftyone.operators.operator.Operator
Attributes:
The
OperatorConfig
for the operator.Whether the operator is builtin.
The unique identifier of the operator:
plugin_name/operator_name
.Methods:
execute
(ctx)Executes the operator.
add_secrets
(secrets)Adds secrets to the operator.
method_to_uri
(method_name)Converts a method name to a URI.
resolve_delegation
(ctx)Returns the resolved forced delegation flag.
Returns the resolved execution options.
resolve_input
(ctx)Returns the resolved input property.
resolve_output
(ctx)Returns the resolved output property.
resolve_placement
(ctx)Returns the resolved placement of the operator.
resolve_type
(ctx, type)Returns the resolved input or output property.
to_json
()Returns a JSON representation of the operator.
-
property
config
¶ The
OperatorConfig
for the operator.
-
execute
(ctx)¶ Executes the operator.
Subclasses must implement this method.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
JSON serializable data, or None
-
add_secrets
(secrets)¶ Adds secrets to the operator.
- Parameters
secrets – a list of secrets
-
property
builtin
¶ Whether the operator is builtin.
-
method_to_uri
(method_name)¶ Converts a method name to a URI.
- Parameters
method_name – the method name
- Returns
a URI
-
property
name
¶
-
resolve_delegation
(ctx)¶ Returns the resolved forced delegation flag.
Subclasses can implement this method to decide if delegated execution should be forced for the given operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
whether the operation should be delegated (True), run immediately (False), or None to defer to
resolve_execution_options()
to specify the available options
-
resolve_execution_options
(ctx)¶ Returns the resolved execution options.
Subclasses can implement this method to define the execution options available for the operation.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.executor.ExecutionOptions
instance
-
resolve_input
(ctx)¶ Returns the resolved input property.
Subclasses can implement this method to define the inputs to the operator. This method should never be called directly. Instead use
resolve_type()
.By default, this method is called once when the operator is created. If the operator is dynamic, this method is called each time the input changes.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_output
(ctx)¶ Returns the resolved output property.
Subclasses can implement this method to define the outputs of the operator.
By default, this method is called once when the operator is created. If the operator is dynamic, this method is called after the operator is executed.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Property
, or None
-
resolve_placement
(ctx)¶ Returns the resolved placement of the operator.
Subclasses can implement this method to define the placement of the operator.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
- Returns
a
fiftyone.operators.types.Placement
, or None
-
resolve_type
(ctx, type)¶ Returns the resolved input or output property.
- Parameters
ctx – the
fiftyone.operators.executor.ExecutionContext
type – the type of property to resolve, either
"inputs"
or"outputs"
- Returns
a
fiftyone.operators.types.Property
, or None
-
to_json
()¶ Returns a JSON representation of the operator.
- Returns
a JSON dict
-
property
uri
¶ The unique identifier of the operator:
plugin_name/operator_name
.
-
property
-
fiftyone.operators.builtin.
get_default_path_for_filesystem
(fs)¶
-
fiftyone.operators.builtin.
list_filesystems
()¶
-
fiftyone.operators.builtin.
list_files
(dirpath)¶