# comfyui_remote_media_io **Repository Path**: ym2j/comfyui_remote_media_io ## Basic Information - **Project Name**: comfyui_remote_media_io - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-05 - **Last Updated**: 2025-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # comfyui_远程媒体_io 从远程 URL 加载媒体(图像/视频/音频),并将结果保存到远程存储。 > [!NOTE] > 此项目是使用 [cookiecutter](https://github.com/Comfy-Org/cookiecutter-comfy-extension) 模板创建的。它可以帮助您开始编写自定义节点,而无需担心 Python 设置问题。 ## 快速开始 1. 安装 [ComfyUI](https://docs.comfy.org/get_started)。 2. 安装 [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager) 3. 在 ComfyUI-Manager 中查找此扩展。如果手动安装,请将此仓库克隆到 `ComfyUI/custom_nodes` 目录下。 4. 重启 ComfyUI。 # 功能特性 - 功能列表 ## 开发指南 要安装开发依赖和 pre-commit(将运行 ruff 钩子),请执行: ```bash cd comfyui_remote_media_io pip install -e .[dev] pre-commit install ``` 上述命令中的 `-e` 标志会导致"实时"安装,这意味着您对节点扩展所做的任何更改都会在下次运行 ComfyUI 时自动生效。 ## 发布到 Gitee 安装 Gitee Desktop 或按照这些 [说明](https://github.com/help/articles/4181) 设置 SSH。 1. 创建一个与目录名称匹配的 Gitee 仓库。 2. 将文件推送到 Git ``` git add . git commit -m "project scaffolding" git push ``` ## 编写自定义节点 一个自定义节点的示例位于 [node.py](src/comfyui_remote_media_io/nodes.py)。要了解更多信息,请阅读 [文档](https://docs.comfy.org/essentials/custom_node_overview)。 ## 测试 此仓库包含用 Pytest 编写的单元测试,位于 `tests/` 目录中。建议对自定义节点进行单元测试。 - [build-pipeline.yml](.github/workflows/build-pipeline.yml) 将在任何开放的 PR 上运行 pytest 和 linter - [validate.yml](.github/workflows/validate.yml) 将运行 [node-diff](https://github.com/Comfy-Org/node-diff) 以检查破坏性更改 ## 发布到注册表 如果您希望与社区中的其他人共享此自定义节点,可以将其发布到注册表。我们已经在 `pyproject.toml` 文件的 `tool.comfy` 部分自动填充了一些字段,但请仔细检查它们是否正确。 您需要在 https://registry.comfy.org 上创建一个账户并生成 API 密钥令牌。 - [ ] 访问 [注册表](https://registry.comfy.org)。登录并创建发布者 ID(您的注册表个人资料中 `@` 符号后面的所有内容)。 - [ ] 将发布者 ID 添加到 pyproject.toml 文件中。 - [ ] 在注册表上创建用于从 Gitee 发布的 API 密钥。[说明](https://docs.comfy.org/registry/publishing#create-an-api-key-for-publishing)。 - [ ] 将其添加到您的 Gitee 仓库密钥中,命名为 `REGISTRY_ACCESS_TOKEN`。 Gitee 操作将在每次 git push 时运行。您也可以手动运行 Gitee 操作。完整说明[此处](https://docs.comfy.org/registry/publishing)。如有任何问题,请加入我们的 [discord](https://discord.com/invite/comfyorg)!