protocol
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ProcessManagerProtocol anyenv.process_manager.protocol Protocol for managing background processes. |
🛈 DocStrings¶
Process management for background command execution.
ProcessManagerProtocol
¶
Bases: Protocol
Protocol for managing background processes.
Source code in src/anyenv/process_manager/protocol.py
get_output
async
¶
get_output(process_id: str) -> ProcessOutput
get_process_info
async
¶
Get information about a process.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Process information |
kill_process
async
¶
list_processes
async
¶
release_process
async
¶
start_process
async
¶
start_process(
command: str,
args: list[str] | None = None,
cwd: str | Path | None = None,
env: dict[str, str] | None = None,
output_limit: int | None = None,
) -> str
Start a background process.
Returns:
| Type | Description |
|---|---|
str
|
Process ID for tracking |