LocalExecutionEnvironmentConfig
Base classes¶
⋔ Inheritance diagram¶
graph TD
2805129396["configs.LocalExecutionEnvironmentConfig"]
2844377061["configs.BaseExecutionEnvironmentConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
2844377061 --> 2805129396
330168112 --> 2844377061
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseExecutionEnvironmentConfig
Local execution environment configuration.
Executes code in the same process. Fastest option but offers no isolation.
Source code in src/exxec_config/configs.py
executable
class-attribute
instance-attribute
¶
executable: str | None = Field(
default=None,
title="Python Executable",
examples=["/usr/bin/python3", "python3.13", "/opt/conda/bin/python"],
)
Python executable to use (if None, auto-detect based on language).
isolated
class-attribute
instance-attribute
¶
Whether to run code in a subprocess.
language
class-attribute
instance-attribute
¶
language: Language = Field(
default="python", title="Programming Language", examples=["python", "javascript", "typescript"]
)
Programming language to use.
root_path
class-attribute
instance-attribute
¶
Path to become the root of the filesystem.
get_provider
¶
get_provider(
lifespan_handler: AbstractAsyncContextManager[ServerInfo] | None = None,
) -> LocalExecutionEnvironment
Create local execution environment instance.