class documentation
class unsafe: (source)
Contains static methods that should not normally be called during workflow execution except in advanced cases.
| Static Method | current |
Gets the current import notification policy override if one is set. |
| Static Method | imports |
Context manager to mark all imports that occur within it as passed through (meaning not reloaded by the sandbox). |
| Static Method | in |
Whether the code is executing on a sandboxed thread. |
| Static Method | is |
Whether the current block of code is in imports_passed_through. |
| Static Method | is |
Whether the workflow is currently replaying. |
| Static Method | is |
Whether the current block of code is not restricted via sandbox. |
| Static Method | sandbox |
Context manager to apply the given import notification policy. |
| Static Method | sandbox |
A context manager to run code without sandbox restrictions. |
| Method | __init__ |
Undocumented |
| Static Method | _set |
Undocumented |
@staticmethod
def current_import_notification_policy_override() ->
def current_import_notification_policy_override() ->
SandboxImportNotificationPolicy | None:
(source)
¶
Gets the current import notification policy override if one is set.
Context manager to mark all imports that occur within it as passed through (meaning not reloaded by the sandbox).
Whether the code is executing on a sandboxed thread.
| Returns | |
bool | True if the code is executing in the sandbox thread. |
Whether the current block of code is in imports_passed_through.
| Returns | |
bool | True if the current code's imports will be passed through |
Whether the current block of code is not restricted via sandbox.
| Returns | |
bool | True if the current code is not restricted in the sandbox. |
@staticmethod
@contextmanager
def sandbox_import_notification_policy(policy:
@contextmanager
def sandbox_import_notification_policy(policy:
SandboxImportNotificationPolicy) -> Iterator[ None]:
(source)
¶
Context manager to apply the given import notification policy.