SshExecutionEnvironmentConfig
Base classes¶
â‹” Inheritance diagram¶
graph TD
1566868366["configs.SshExecutionEnvironmentConfig"]
2844377061["configs.BaseExecutionEnvironmentConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
2844377061 --> 1566868366
330168112 --> 2844377061
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseExecutionEnvironmentConfig
SSH execution environment configuration.
Executes code on a remote machine via SSH connection.
Source code in src/exxec_config/configs.py
host
class-attribute
instance-attribute
¶
Remote host to connect to.
language
class-attribute
instance-attribute
¶
language: Language = Field(
default="python", title="Programming Language", examples=["python", "javascript", "typescript"]
)
Programming language to use.
password
class-attribute
instance-attribute
¶
SSH password (if not using key auth).
port
class-attribute
instance-attribute
¶
SSH port.
private_key_path
class-attribute
instance-attribute
¶
private_key_path: str | None = Field(
default=None, title="Private Key Path", examples=["~/.ssh/id_rsa", "/path/to/key"]
)
Path to SSH private key file.
sandbox_timeout
class-attribute
instance-attribute
¶
sandbox_timeout: float = Field(
default=300.0, gt=0.0, title="Connection Timeout", examples=[300.0, 600.0, 3600.0]
)
SSH connection timeout in seconds.
username
class-attribute
instance-attribute
¶
SSH username.
get_provider
¶
get_provider(
lifespan_handler: AbstractAsyncContextManager[ServerInfo] | None = None,
) -> SshExecutionEnvironment
Create SSH execution environment instance.