Files
qwen.ai[bot] 88e8100ae1 Title: Migrate to ComfyUI V3 API with enhanced functionality
Key features implemented:
- Migrated from legacy V1 API to modern V3 API using io.Schema, ComfyNode base class, and comfy_entrypoint function
- Implemented type-safe inputs/outputs with io.ImageInput and io.IntOutput, replacing string-based type definitions
- Added input validation through validate_inputs method with proper error handling via ValidationError
- Enhanced batch processing support by returning lists for each image in the batch instead of single values
- Updated pyproject.toml with new dependencies (torch, numpy) and increased minimum Python version to 3.10
- Refactored node structure to use ComfyExtension registration pattern instead of NODE_CLASS_MAPPINGS
- Improved documentation with detailed tooltips, descriptions, and updated README with V3 API features
- Modernized .gitignore with comprehensive exclusion patterns for various build artifacts and editor files

The migration to V3 API provides better type safety, improved validation, and enhanced batch processing capabilities while maintaining backward compatibility for basic functionality. The updated documentation and dependency management improve developer experience and project maintainability.
2026-04-08 09:17:20 +00:00

15 lines
372 B
Python

"""
ComfyUI Prelife Custom Nodes (V3 API)
This package provides custom nodes for ComfyUI using the modern V3 API.
"""
from .nodes import ImageSizeAnalyzer, comfy_entrypoint
__version__ = "0.2.0"
# V3 API entry point - ComfyUI will call this function automatically
comfy_entrypoint = comfy_entrypoint
__all__ = ["ImageSizeAnalyzer", "comfy_entrypoint", "__version__"]