bundle.pods¶
Bundle pods CLI package.
Submodules¶
Classes¶
Manages discovery and orchestration of local AI pods. |
|
Declarative specification for a single pod. |
Package Contents¶
- class bundle.pods.PodManager(/, **data: Any)[source]¶
Bases:
bundle.core.entity.EntityManages discovery and orchestration of local AI pods.
On construction the manager resolves the Docker Compose CLI, scans the
pods_rootdirectory for pod folders (each containing adocker-compose.yml), and caches the resultingPodSpecobjects.All compose operations (build, run, down, status, logs) are async and delegate to
ProcessStreamfor streamed output orProcessfor captured output.- pods_root: pathlib.Path¶
- classmethod create(pods_root: pathlib.Path | str | None = None) PodManager[source]¶
Factory that resolves the pods root and returns a ready-to-use manager.
- get(name: str) PodSpec[source]¶
Look up a pod by name (case-insensitive). Raises
ClickExceptionif not found.
- pod_path(pod: PodSpec) pathlib.Path[source]¶
Resolve and validate the filesystem path for a pod.
- async compose(pod: PodSpec, subcommand: str, stream: bool = False) bundle.core.process.ProcessResult[source]¶
Execute a docker compose subcommand against a pod’s compose file.
- async build(pod: PodSpec) bundle.core.process.ProcessResult | None[source]¶
Build the pod’s Docker image. Skips pods that use prebuilt images only.
- async run(pod: PodSpec) bundle.core.process.ProcessResult[source]¶
Start a pod in detached mode (
up -d).
- async down(pod: PodSpec) bundle.core.process.ProcessResult[source]¶
Stop and remove a pod’s containers and networks.
- async status(pod: PodSpec) bundle.core.process.ProcessResult[source]¶
Return the
docker compose psoutput for a pod.
- class bundle.pods.PodSpec(/, **data: Any)[source]¶
Bases:
bundle.core.data.DataDeclarative specification for a single pod.
- name¶
Pod identifier (e.g. “comfyui”, “discord-bot”).
- folder¶
Subdirectory name under the pods root.
- service¶
Docker Compose service name, if the compose file defines one matching the pod name.
- buildable¶
Whether the compose file contains a
build:section.
- containers¶
Explicit
container_namevalues parsed from the compose file.