The `comfyui-workflow-templates` library provides a convenient Python package to access a collection of pre-defined ComfyUI workflow JSONs. It allows developers to easily retrieve and use these templates programmatically, streamlining the creation and sharing of ComfyUI workflows. The current version is 0.9.45, with updates typically released as new templates are added or existing ones are refined.
pip install comfyui-workflow-templatesVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to list available ComfyUI workflow templates and retrieve a specific one by name using the `comfyui_workflow_templates` package. The retrieved template is a standard Python dictionary representing the ComfyUI workflow JSON.
Always use `cwt.list_templates()` to get the current list of available template names, or wrap calls to `cwt.get_workflow_template()` in a `try-except KeyError` block.
Users must manually load this dictionary into ComfyUI's API or UI if they wish to execute or manipulate the workflow within ComfyUI. The library solely provides the data.
If precise template content is critical for your application, pin the `comfyui-workflow-templates` package to a specific version in your `requirements.txt` (e.g., `comfyui-workflow-templates==0.9.45`).
No dependency data recorded yet.