fiftyone.operators.permissions#
FiftyOne operator permissions.
Classes:
|
|
|
- class fiftyone.operators.permissions.ManagedOperators(managed_operators=None)#
Bases:
object
Methods:
has_operator
(operator_uri)for_request
(request[, dataset_ids])- has_operator(operator_uri)#
- async classmethod for_request(request, dataset_ids=None)#
- class fiftyone.operators.permissions.PermissionedOperatorRegistry(managed_operators)#
Bases:
OperatorRegistry
Methods:
can_execute
(operator_uri)Whether the operator can be executed.
from_list_request
(request[, dataset_ids])from_exec_request
(request[, dataset_ids])get_operator
(operator_uri)Retrieves an operator by its URI.
Lists the errors that occurred during operator loading.
list_operators
([builtin, type])Lists the available FiftyOne operators.
operator_exists
(operator_uri)Checks if the operator exists.
- can_execute(operator_uri)#
Whether the operator can be executed.
- Parameters:
operator_uri – the URI of the operator
- Returns:
True/False
- async classmethod from_list_request(request, dataset_ids=None)#
- async classmethod from_exec_request(request, dataset_ids=None)#
- get_operator(operator_uri)#
Retrieves an operator by its URI.
- Parameters:
operator_uri – the URI of an operator
- Returns:
an
fiftyone.operators.Operator
, or None
- list_errors()#
Lists the errors that occurred during operator loading.
- Returns:
a list of errors
- list_operators(builtin=None, type=None)#
Lists the available FiftyOne operators.
- Parameters:
builtin (None) – whether to include only builtin operators (True) or only non-builtin operators (False)
type (None) – whether to include only
"panel"
or"operator"
type operators, or a specificfiftyone.operators.Operator
subclass to restrict to
- Returns:
a list of
fiftyone.operators.Operator
instances
- operator_exists(operator_uri)#
Checks if the operator exists.
- Parameters:
operator_uri – the URI of the operator
- Returns:
True/False