File size: 659 Bytes
2862b00
 
 
 
6a88274
2386a1a
c3b49d6
2862b00
c3b49d6
a495d22
 
 
 
 
c3b49d6
a495d22
c3b49d6
a495d22
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
Execution subsystem - Python execution and monitoring.
"""

from .base import Executor, get_executor
from .monitoring import Timing
from .python_executor import PythonExecutor

__all__ = ["Executor", "get_executor", "PythonExecutor", "Timing", "SandboxedExecutor"]


def __getattr__(name):
    # Lazy re-export of the ADR-0007 sandbox executor so importing this package
    # stays dep-light (the sandbox client pulls urllib + launchers only when used).
    if name == "SandboxedExecutor":
        from .sandbox.executor import SandboxedExecutor

        return SandboxedExecutor
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")