DockerExecutionEnvironmentConfig
Base classes¶
⋔ Inheritance diagram¶
graph TD
2087081460["configs.DockerExecutionEnvironmentConfig"]
2844377061["configs.BaseExecutionEnvironmentConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
2844377061 --> 2087081460
330168112 --> 2844377061
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseExecutionEnvironmentConfig
Docker execution environment configuration.
Executes code in Docker containers for strong isolation and reproducible environments.
Source code in src/exxec_config/configs.py
image
class-attribute
instance-attribute
¶
image: str = Field(
default="python:3.13-slim",
title="Docker Image",
examples=["python:3.13-slim", "node:20-alpine", "ubuntu:22.04"],
)
Docker image to use.
language
class-attribute
instance-attribute
¶
language: Language = Field(
default="python", title="Programming Language", examples=["python", "javascript", "typescript"]
)
Programming language to use.
get_provider
¶
get_provider(
lifespan_handler: AbstractAsyncContextManager[ServerInfo] | None = None,
) -> DockerExecutionEnvironment
Create Docker execution environment instance.