Buckets:

download
raw
1.6 kB
"""
Execution and sandbox systems for effGen.
This package runs code with multi-language support, resource limits, and static
code validation. Isolation depends on the backend: ``DockerSandbox`` confines
the filesystem and network in a container; ``LocalSandbox`` runs code in a
subprocess screened by an AST/regex validator, which is a static check rather
than an operating-system boundary and does not isolate the host. To run code an
untrusted model produced with the project's hardened isolation, use the
registered ``code_executor`` tool (``effgen.security.sandbox``); see
``effgen/execution/sandbox.py`` for the details.
"""
from .docker_sandbox import DOCKER_AVAILABLE, DockerManager, DockerSandbox
from .sandbox import (
BaseSandbox,
CodeExecutor,
CodeExecutorWithHistory,
ExecutionHistory,
ExecutionPool,
ExecutionResult,
ExecutionStatus,
LocalSandbox,
SandboxConfig,
)
from .validators import (
BashValidator,
CodeValidator,
JavaScriptValidator,
PythonValidator,
ValidationIssue,
ValidationResult,
ValidationSeverity,
)
__all__ = [
# Sandbox
"CodeExecutor",
"BaseSandbox",
"LocalSandbox",
"SandboxConfig",
"ExecutionResult",
"ExecutionStatus",
"ExecutionPool",
"ExecutionHistory",
"CodeExecutorWithHistory",
# Docker sandbox
"DockerSandbox",
"DockerManager",
"DOCKER_AVAILABLE",
# Validators
"CodeValidator",
"PythonValidator",
"JavaScriptValidator",
"BashValidator",
"ValidationResult",
"ValidationIssue",
"ValidationSeverity",
]

Xet Storage Details

Size:
1.6 kB
·
Xet hash:
326dcb97bfd8b2195e7e2ebbf2599c5a55ab25c48e30928d6000b90c8140262f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.