Registry /
ai-ml / comfyui-workflow-templates-core
Install & Compatibility
Where this runs
tested against v0.3.326 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.084s · 18.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.082s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
get_asset_path
✓ from comfyui_workflow_templates_core import get_asset_path
✗ from workflow_templates_core.manifest import WorkflowTemplateManifest
get_template_entry
✓ from comfyui_workflow_templates_core import get_template_entry
load_manifest
✓ from comfyui_workflow_templates_core import load_manifest
This quickstart demonstrates how to programmatically interact with `workflow_templates_core` by creating a mock workflow template manifest and then using the library's `WorkflowTemplateManifest` model to parse and validate it. It simulates the core functionality of loading template metadata, which is essential for ComfyUI's template browsing system. [1]
import json
from pathlib import Path
from workflow_templates_core.loader import WorkflowTemplateLoader
# Create a dummy workflow template manifest JSON file
dummy_manifest_content = {
"id": "my_first_template",
"name": "My First ComfyUI Template",
"description": "A simple example template.",
"version": "1.0.0",
"tags": ["example", "basic"],
"dependencies": [],
"workflow": "path/to/my_first_template.json"
}
dummy_dir = Path('./my_templates')
dummy_dir.mkdir(exist_ok=True)
manifest_path = dummy_dir / 'my_first_template.manifest.json'
workflow_path = dummy_dir / 'my_first_template.json'
with open(manifest_path, 'w') as f:
json.dump(dummy_manifest_content, f, indent=2)
with open(workflow_path, 'w') as f:
# A minimal dummy ComfyUI workflow JSON
json.dump({"nodes": [], "links": []}, f, indent=2)
print(f"Created dummy manifest: {manifest_path}")
print(f"Created dummy workflow: {workflow_path}")
# Initialize the loader with the base path where templates are stored
# The loader expects manifests in a 'manifests' sub-directory or directly in the templates_path
# For this example, we'll point it to the directory containing our manifest.
loader = WorkflowTemplateLoader(templates_path=dummy_dir)
# Load the manifest (usually done by scanning the templates_path)
# In a real scenario, you'd iterate through discovered manifests.
# For this quickstart, we'll simulate loading a specific manifest file directly.
# Note: The loader's `load` method typically expects the manifest file itself, not its containing directory.
# A more typical usage would involve the loader *finding* manifests.
# As a direct example, we can parse the content into a Manifest object:
print("\nAttempting to parse manifest content...")
try:
with open(manifest_path, 'r') as f:
raw_manifest = json.load(f)
manifest = WorkflowTemplateManifest(**raw_manifest)
print(f"Successfully parsed manifest: {manifest.name} (ID: {manifest.id})")
print(f"Workflow file referenced: {manifest.workflow}")
except Exception as e:
print(f"Error parsing manifest: {e}")
# Clean up dummy files
manifest_path.unlink()
workflow_path.unlink()
dummy_dir.rmdir()
print("\nCleaned up dummy files.")
Upgrade
Version history
0.3.326latest on PyPI · released Aug 27, 2026
Audit
Dependencies
ComfyUIrequiredThis library provides core helpers for ComfyUI's native workflow template system and is intended to be used within or alongside a ComfyUI installation. It's often updated alongside ComfyUI's core and other related frontend/documentation packages.