class documentation

class unsafe: (source)

View In Hierarchy

Contains static methods that should not normally be called during workflow execution except in advanced cases.

Static Method imports_passed_through Context manager to mark all imports that occur within it as passed through (meaning not reloaded by the sandbox).
Static Method in_sandbox Whether the code is executing on a sandboxed thread.
Static Method is_imports_passed_through Whether the current block of code is in imports_passed_through.
Static Method is_replaying Whether the workflow is currently replaying.
Static Method is_sandbox_unrestricted Whether the current block of code is not restricted via sandbox.
Static Method sandbox_unrestricted A context manager to run code without sandbox restrictions.
Method __init__ Undocumented
Static Method _set_in_sandbox Undocumented
@staticmethod
@contextmanager
def imports_passed_through() -> Iterator[None]: (source)

Context manager to mark all imports that occur within it as passed through (meaning not reloaded by the sandbox).

@staticmethod
def in_sandbox() -> bool: (source)

Whether the code is executing on a sandboxed thread.

Returns
boolTrue if the code is executing in the sandbox thread.
@staticmethod
def is_imports_passed_through() -> bool: (source)

Whether the current block of code is in imports_passed_through.

Returns
boolTrue if the current code's imports will be passed through
@staticmethod
def is_replaying() -> bool: (source)

Whether the workflow is currently replaying.

Returns
boolTrue if the workflow is currently replaying
@staticmethod
def is_sandbox_unrestricted() -> bool: (source)

Whether the current block of code is not restricted via sandbox.

Returns
boolTrue if the current code is not restricted in the sandbox.
@staticmethod
@contextmanager
def sandbox_unrestricted() -> Iterator[None]: (source)

A context manager to run code without sandbox restrictions.

def __init__(self): (source)

Undocumented

@staticmethod
def _set_in_sandbox(v: bool): (source)

Undocumented