Registry / ai-ml / comfyui-workflow-templates

comfyui-workflow-templates

JSON →
library0.11.50pypypi✓ verified 25d ago

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-templates
INSTALL
IMPORT
SIG · COMFYUI-WORKFLOW-T
C
comfyui-workflow-templates
ai-mlpythonv0.11.50
Install
8.3s avg
Import
101ms
Disk
473MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.11.50 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.108s · 474.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.3s · import 0.094s · 475MB
473MB installed
● package 473MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_asset_path
from comfyui_workflow_templates import get_asset_path
from comfyui_workflow_templates import get_workflow_template
get_template_entry
from comfyui_workflow_templates import get_template_entry
load_manifest
from comfyui_workflow_templates import load_manifest

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.

import comfyui_workflow_templates as cwt import json # List all available templates print("Available templates:", cwt.list_templates()[:5], "...") # Get a specific template by name (e.g., 'sdxl_base_workflow') # Note: Template names can change; check available_templates if unsure. try: template_name = "sdxl_base_workflow" # This is an example, verify with list_templates() workflow_json = cwt.get_workflow_template(template_name) print(f"\nSuccessfully loaded template '{template_name}'.") # print(json.dumps(workflow_json, indent=2)) print(f"Template keys (top-level): {list(workflow_json.keys())}") except KeyError as e: print(f"\nError: Template '{template_name}' not found. Available templates might have changed.") print("Consider using `cwt.list_templates()` to see current names.")
Debug
Known issues
gotchaTemplate names are dynamic strings and can change or be removed between `comfyui-workflow-templates` versions. Relying on hardcoded template names without verification can lead to `KeyError`.
fix
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.
affects: All versions
gotchaThe `workflow_json` returned by `get_workflow_template()` is a raw Python dictionary representation of the ComfyUI workflow JSON. It provides no direct integration, validation, or interaction with a running ComfyUI instance.
fix
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.
affects: All versions
gotchaThe internal content of specific templates (e.g., node configurations, connections) can be updated between package versions. This might subtly alter the behavior of your workflows if you depend on a precise template structure.
fix
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`).
affects: All versions
Upgrade
Version history
0.11.50latest on PyPI · released Aug 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
40
OpenAI (training)
2
Resources
comfyui-workflow-templates — pip install comfyui-workflow-templates · libregistry