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:
fiftyone.operators.registry.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
([include_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
(include_builtin=True, type=None)¶ Lists the available FiftyOne operators.
- Parameters
include_builtin (True) – whether to include builtin operators
type (None) – whether to include only
"panel"
or"operator"
type operators
- 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
-