From 193811bc2fbafd9c79e1fa9750cf615fd698d091 Mon Sep 17 00:00:00 2001 From: Wouter Verweirder Date: Mon, 24 Nov 2025 11:42:33 +0100 Subject: [PATCH] renamed to comfyui_live_input_stream --- .github/ISSUE_TEMPLATE.md | 2 +- MANIFEST.in | 2 +- README.md | 8 ++++---- __init__.py | 6 +++--- pyproject.toml | 6 +++--- .../__init__.py | 0 .../nodes.py | 4 ++-- tests/__init__.py | 2 +- tests/test_comfyui_webcam_advanced.py | 4 ++-- web/js/webcam_advanced.js | 4 ++-- 10 files changed, 19 insertions(+), 19 deletions(-) rename src/{comfyui_webcam_advanced => comfyui_live_input_stream}/__init__.py (100%) rename src/{comfyui_webcam_advanced => comfyui_live_input_stream}/nodes.py (88%) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 2a33b14..af341b1 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,4 +1,4 @@ -* comfyui_webcam_advanced version: +* comfyui_live_input_stream version: * Python version: * Operating System: diff --git a/MANIFEST.in b/MANIFEST.in index 788d29f..7efd905 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,4 +6,4 @@ recursive-exclude * *.py[co] recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif -graft src/comfyui_webcam_advanced/web +graft src/comfyui_live_input_stream/web diff --git a/README.md b/README.md index f67e169..818fdbd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# ComfyUI Webcam Advanced +# Comfyui Live Input Stream -Webcam Node With Advanced Live Preview, allowing to see a live preview of cropping and masking. +Webcam & Screen Share Input Nodes with Cropping and Live Preview of the Cropped Stream > [!NOTE] > This projected was created with a [cookiecutter](https://github.com/Comfy-Org/cookiecutter-comfy-extension) template. It helps you start writing custom nodes without worrying about the Python setup. @@ -21,7 +21,7 @@ Webcam Node With Advanced Live Preview, allowing to see a live preview of croppi To install the dev dependencies and pre-commit (will run the ruff hook), do: ```bash -cd comfyui_webcam_advanced +cd comfyui_live_input_stream pip install -e .[dev] pre-commit install ``` @@ -42,7 +42,7 @@ git push ## Writing custom nodes -An example custom node is located in [node.py](src/comfyui_webcam_advanced/nodes.py). To learn more, read the [docs](https://docs.comfy.org/essentials/custom_node_overview). +An example custom node is located in [node.py](src/comfyui_live_input_stream/nodes.py). To learn more, read the [docs](https://docs.comfy.org/essentials/custom_node_overview). ## Tests diff --git a/__init__.py b/__init__.py index 7ec6150..8bedbba 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,4 @@ -"""Top-level package for comfyui_webcam_advanced.""" +"""Top-level package for comfyui_live_input_stream.""" __all__ = [ "NODE_CLASS_MAPPINGS", @@ -10,7 +10,7 @@ __author__ = """Wouter Verweirder""" __email__ = "wouter.verweirder@gmail.com" __version__ = "0.0.1" -from .src.comfyui_webcam_advanced.nodes import NODE_CLASS_MAPPINGS -from .src.comfyui_webcam_advanced.nodes import NODE_DISPLAY_NAME_MAPPINGS +from .src.comfyui_live_input_stream.nodes import NODE_CLASS_MAPPINGS +from .src.comfyui_live_input_stream.nodes import NODE_DISPLAY_NAME_MAPPINGS WEB_DIRECTORY = "./web" diff --git a/pyproject.toml b/pyproject.toml index 13e32c5..ad0023e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,9 +3,9 @@ requires = ["setuptools>=70.0"] build-backend = "setuptools.build_meta" [project] -name = "comfyui_webcam_advanced" +name = "comfyui_live_input_stream" version = "0.0.1" -description = "Webcam Node With Advanced Live Preview, allowing to see a live preview of cropping and masking." +description = "Webcam & Screen Share Input Nodes with Cropping and Live Preview of the Cropped Stream" authors = [ {name = "Wouter Verweirder", email = "wouter.verweirder@gmail.com"} ] @@ -37,7 +37,7 @@ Documentation = "https://github.com/{{ cookiecutter.github_username }}/{{ cookie [tool.comfy] PublisherId = "wouterverweirder" -DisplayName = "ComfyUI Webcam Advanced" +DisplayName = "Comfyui Live Input Stream" Icon = "" Tags = [] Repository = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}" diff --git a/src/comfyui_webcam_advanced/__init__.py b/src/comfyui_live_input_stream/__init__.py similarity index 100% rename from src/comfyui_webcam_advanced/__init__.py rename to src/comfyui_live_input_stream/__init__.py diff --git a/src/comfyui_webcam_advanced/nodes.py b/src/comfyui_live_input_stream/nodes.py similarity index 88% rename from src/comfyui_webcam_advanced/nodes.py rename to src/comfyui_live_input_stream/nodes.py index 6199f10..b3990ec 100644 --- a/src/comfyui_webcam_advanced/nodes.py +++ b/src/comfyui_live_input_stream/nodes.py @@ -40,10 +40,10 @@ class WebcamCaptureAdvanced(nodes.LoadImage): # A dictionary that contains all nodes you want to export with their names # NOTE: names should be globally unique NODE_CLASS_MAPPINGS = { - "be.aboutme.comfyui.webcam_advanced.webcam_capture_advanced": WebcamCaptureAdvanced + "be.aboutme.comfyui.live_input_stream.webcam_capture_advanced": WebcamCaptureAdvanced } # A dictionary that contains the friendly/humanly readable titles for the nodes NODE_DISPLAY_NAME_MAPPINGS = { - "be.aboutme.comfyui.webcam_advanced.webcam_capture_advanced": "Webcam Capture Advanced" + "be.aboutme.comfyui.live_input_stream.webcam_capture_advanced": "Webcam Capture Advanced" } diff --git a/tests/__init__.py b/tests/__init__.py index 1f297ab..4643225 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1 @@ -"""Unit test package for comfyui_webcam_advanced.""" +"""Unit test package for comfyui_live_input_stream.""" diff --git a/tests/test_comfyui_webcam_advanced.py b/tests/test_comfyui_webcam_advanced.py index d2fac0f..039eaf8 100644 --- a/tests/test_comfyui_webcam_advanced.py +++ b/tests/test_comfyui_webcam_advanced.py @@ -1,9 +1,9 @@ #!/usr/bin/env python -"""Tests for `comfyui_webcam_advanced` package.""" +"""Tests for `comfyui_live_input_stream` package.""" import pytest -from src.comfyui_webcam_advanced.nodes import Example +from src.comfyui_live_input_stream.nodes import Example @pytest.fixture def example_node(): diff --git a/web/js/webcam_advanced.js b/web/js/webcam_advanced.js index ad182c1..e281263 100644 --- a/web/js/webcam_advanced.js +++ b/web/js/webcam_advanced.js @@ -2,7 +2,7 @@ import { app } from "../../../scripts/app.js" import { api } from "../../../scripts/api.js" app.registerExtension({ - name: "be.aboutme.comfyui.webcam_advanced", + name: "be.aboutme.comfyui.live_input_stream", async setup() { }, getCustomWidgets() { @@ -16,7 +16,7 @@ app.registerExtension({ } }, async nodeCreated(node) { - if (node.constructor.comfyClass !== "be.aboutme.comfyui.webcam_advanced.webcam_capture_advanced") { + if (node.constructor.comfyClass !== "be.aboutme.comfyui.live_input_stream.webcam_capture_advanced") { return }