fabricatio_comfyui.pool
URL-based client pool for ComfyUI.
Provides get_client() to obtain a shared ComfyuiClient keyed by
targeting the same ComfyUI server reuse the same underlying HTTP pool.
Functions
|
Return (or lazily create) a shared client for base_url. |
|
Close every pooled client. Call at application shutdown. |
Module Contents
- fabricatio_comfyui.pool.get_client(base_url: str | None = None) fabricatio_comfyui.client.ComfyuiClient
Return (or lazily create) a shared client for base_url.
- Parameters:
base_url – ComfyUI server URL.
Noneusescomfyui_config.base_url.- Returns:
An open
ComfyuiClientready for use.