module documentation

Restrictive importer for workflow sandbox.

Warning

This API for this module is considered unstable and may change in future.

Class Importer Importer that restricts modules.
Constant LOG_TRACE Undocumented
Variable logger Undocumented
Class _ThreadLocalCallable Undocumented
Class _ThreadLocalOverride Undocumented
Class _ThreadLocalSysModules Undocumented
Function _calc___package__ Calculate what __package__ should be. __package__ is not guaranteed to be defined or could be set to None to represent that its proper value is unknown.
Function _get_thread_local_builtin Undocumented
Function _resolve_module_name Undocumented
Function _trace Undocumented
Constant _P Undocumented
Type Variable _T Undocumented
Variable _thread_local_builtins Undocumented
Variable _thread_local_import Undocumented
Variable _thread_local_sys_modules Undocumented
Variable _trace_depth Undocumented
LOG_TRACE: bool = (source)

Undocumented

Value
False

Undocumented

@no_type_check
def _calc___package__(globals: Mapping[str, object]) -> str: (source)

Calculate what __package__ should be. __package__ is not guaranteed to be defined or could be set to None to represent that its proper value is unknown.

def _get_thread_local_builtin(name: str) -> _ThreadLocalCallable: (source)

Undocumented

def _resolve_module_name(name: str, globals: Optional[Mapping[str, object]], level: int) -> str: (source)

Undocumented

def _trace(message: object, *args: object): (source)

Undocumented

Undocumented

Value
ParamSpec('_P')

Undocumented

Value
TypeVar('_T')
_thread_local_builtins: Dict[str, _ThreadLocalCallable] = (source)

Undocumented

_thread_local_import = (source)

Undocumented

_thread_local_sys_modules = (source)

Undocumented

_trace_depth: int = (source)

Undocumented