Python library for ComfyUI workflow automation
Top 57.7% on sourcepulse
ComfyScript provides a Pythonic interface and library for ComfyUI, enabling programmatic control over complex generative workflows. It targets users who prefer code over GUIs, researchers needing to integrate ComfyUI into ML pipelines, and developers seeking to automate or extend ComfyUI's capabilities. The primary benefit is enhanced flexibility, reproducibility, and integration with Python ecosystems.
How It Works
ComfyScript translates ComfyUI's node-based workflows into Python code, allowing for direct execution, manipulation, and generation of workflows. It offers a runtime environment that executes these Python scripts, abstracting the underlying ComfyUI graph execution. This approach facilitates programmatic control, enabling loops, conditional logic, and seamless integration with other Python libraries, which is a significant advantage over manual graph construction.
Quick Start & Requirements
Installation involves cloning the repository into ComfyUI's custom_nodes
directory and installing dependencies via pip install -e ".[default]"
. Alternatively, ComfyUI can be installed as a Python package, and ComfyScript installed via pip install -U "comfy-script[default]"
. Python 3.12 is recommended.
Highlighted Details
Maintenance & Community
The project is actively maintained by Chaoses-Ib. Community interaction and support can be found via the project's GitHub repository.
Licensing & Compatibility
The repository's license is not explicitly stated in the provided README. Users should verify licensing for commercial use or integration with closed-source projects.
Limitations & Caveats
The README mentions potential bugs in specific integrations like comfyui-photoshop
and notes that some features might require manual activation or troubleshooting, particularly regarding type stub functionality in certain IDEs. The license status requires clarification.
1 month ago
1 day