MCPcopy Create free account

hub / github.com/Aaalice233/ComfyUI-Aaalice-Pack-Unpack-Tool / functions

Functions135 in github.com/Aaalice233/ComfyUI-Aaalice-Pack-Unpack-Tool

↓ 208 callersFunctionlog_callback
(msg: str)
src/comfy_pack/unpacker_cli.py:175
↓ 46 callersFunctionrun_subprocess
运行 subprocess,自动添加 Windows 下的隐藏窗口标志
src/comfy_pack/unpacker_core.py:159
↓ 24 callersMethodlog
添加日志
src/comfy_pack/unpacker_gui.py:602
↓ 19 callersMethodrun
执行解包
src/comfy_pack/unpacker_gui.py:122
↓ 15 callersFunctionlog
(msg: str)
src/comfy_pack/unpacker_core.py:281
↓ 15 callersFunctionprogress_callback
(stage: str, pct: int)
src/comfy_pack/unpacker_cli.py:178
↓ 12 callersFunctionadd_if_valid
添加路径并快速验证
src/comfy_pack/unpacker_core.py:285
↓ 9 callersFunctionfix_detached_head
切换到主分支(main/master)并重置到目标版本 无论当前是什么状态(detached HEAD 或其他分支)
src/comfy_pack/unpacker_core.py:927
↓ 7 callersMethodsave_current_config
保存当前配置
src/comfy_pack/unpacker_gui.py:383
↓ 6 callersFunctionsend_pack_progress
Send pack progress update via WebSocket. Args: client_id: Client ID for WebSocket routing stage: Current stage identifier
nodes/api.py:23
↓ 5 callersMethodcheck_ready
检查是否可以开始解包
src/comfy_pack/unpacker_gui.py:760
↓ 4 callersFunction_parse_workflow
Parse the workflow template and return the input and output definition
src/comfy_pack/utils.py:77
↓ 4 callersMethodstart
Start the ComfyUI process. This method starts ComfyUI in the background, sets up necessary directories, and disables trackin
src/comfy_pack/run.py:87
↓ 3 callersMethod__init__
(self)
src/comfy_pack/unpacker_gui.py:315
↓ 3 callersFunction_clone_commit
(url: str, commit: str, dir: Path, verbose: int = 0)
src/comfy_pack/package.py:26
↓ 3 callersFunction_normalize_to_identifier
(s: str)
src/comfy_pack/utils.py:31
↓ 3 callersFunctioncreate_model_symlink
Create symlink from global storage to workspace
src/comfy_pack/package.py:271
↓ 3 callersFunctioninstall
( cpack: str | Path, workspace: str | Path = "workspace", preheat: bool = False, prepare_model
src/comfy_pack/package.py:411
↓ 2 callersFunction_extract_proxy_hostport
将代理字符串标准化为 host:port。
src/comfy_pack/unpacker_core.py:27
↓ 2 callersFunction_get_node_identifier
Get the input name from the node
src/comfy_pack/utils.py:46
↓ 2 callersFunction_get_node_value
(node: dict)
src/comfy_pack/utils.py:20
↓ 2 callersFunction_inject_proxy_env
为子进程注入代理环境变量。
src/comfy_pack/unpacker_core.py:136
↓ 2 callersFunction_is_port_in_use
(port: int | str, host="localhost")
src/comfy_pack/run.py:36
↓ 2 callersFunction_print_schema
(schema, verbose: int = 0)
src/comfy_pack/cli.py:319
↓ 2 callersFunctioncreateModal
(modal)
web/main.js:97
↓ 2 callersFunctiondetect_git_executable
检测 Git 可执行文件 优先从 ComfyUI 同级目录查找,然后是全局 Returns: Git 可执行文件路径,如果未找到返回 None
src/comfy_pack/unpacker_core.py:391
↓ 2 callersFunctiondetect_python_environments
检测 Python 环境 优先从 ComfyUI 同级目录查找,然后是 ComfyUI 内部,最后是全局 Args: comfyui_dir: ComfyUI 根目录 log_callback: 可选的日志回调函数
src/comfy_pack/unpacker_core.py:265
↓ 2 callersFunctionget_comfyui_commit
获取 ComfyUI 当前的 git commit
src/comfy_pack/unpacker_core.py:534
↓ 2 callersFunctionget_effective_proxy_url
获取当前进程可用的代理 URL(优先环境变量,再系统代理)。
src/comfy_pack/unpacker_core.py:122
↓ 2 callersFunctionget_self_git_commit
Get current git commit of the repository. Returns: str | None: Git commit hash in format "{hash}[-dirty]" or None if not in a git repo
src/comfy_pack/utils.py:282
↓ 2 callersFunctionmain
主函数
src/comfy_pack/unpacker_gui.py:865
↓ 2 callersFunctionmimicNode
(node, target, slot)
web/dynamic.js:3
↓ 2 callersFunctionnormalize_url
标准化 Git URL 用于比较
src/comfy_pack/unpacker_core.py:727
↓ 2 callersMethodreset_ui
重置 UI 状态
src/comfy_pack/unpacker_gui.py:858
↓ 2 callersFunctionretrieve_models
Retrieve models from user downloads
src/comfy_pack/package.py:286
↓ 2 callersFunctionshow_progress
Progress callback function
src/comfy_pack/package.py:262
↓ 2 callersFunctionunpack_to_existing_comfyui
解包到现有 ComfyUI 环境 Args: cpack_path: 压缩包路径 comfyui_dir: ComfyUI 根目录 python_exe: Python 可执行文件路径 git_exe: Gi
src/comfy_pack/unpacker_core.py:1858
↓ 1 callersMethod_convert_to_html
将纯文本转换为 HTML,自动识别链接
src/comfy_pack/unpacker_gui.py:296
↓ 1 callersFunction_detect_proxy_url_from_env
从环境变量中读取代理地址并转成 URL。
src/comfy_pack/unpacker_core.py:60
↓ 1 callersFunction_detect_windows_system_proxy_url
从 Windows 注册表读取系统代理配置。
src/comfy_pack/unpacker_core.py:81
↓ 1 callersFunction_ensure_uv
Ensure uv is installed, raise error if not.
src/comfy_pack/cli.py:18
↓ 1 callersFunction_generate_basic_snapshot
Generate a basic snapshot with installed custom nodes info.
nodes/api.py:142
↓ 1 callersFunction_get_cache_workspace
(cpack: str)
src/comfy_pack/cli.py:355
↓ 1 callersFunction_prepare_pack
( working_dir: ZPath, data: dict, store_models: bool = False, ensure_source: bool = True,
nodes/api.py:295
↓ 1 callersFunction_probe_comfyui_server
(port: int)
src/comfy_pack/run.py:22
↓ 1 callersMethod_read_completion_message
读取压缩包中的完成消息
src/comfy_pack/unpacker_gui.py:150
↓ 1 callersFunction_save_snapshot
获取当前环境的快照信息。 优先使用已有的有效快照文件,没有才调用 ComfyUI-Manager 生成。
nodes/api.py:71
↓ 1 callersFunction_set_node_value
(node: dict, value: Any)
src/comfy_pack/utils.py:24
↓ 1 callersFunction_wait_for_startup
(host: str, port: int, timeout: int = 1800)
src/comfy_pack/run.py:194
↓ 1 callersFunction_write_completion_message
写入自定义完成消息
nodes/api.py:215
↓ 1 callersFunction_write_snapshot
(path: ZPath, data: dict)
nodes/api.py:197
↓ 1 callersFunction_write_workflow
(path: ZPath, data: dict)
nodes/api.py:209
↓ 1 callersFunctionbuild_bento
( bento_name: str, source_dir: Path, *, version: str | None = None, system_packages: list[
src/comfy_pack/package.py:488
↓ 1 callersFunctioncheck_dependencies
检查依赖包差异
src/comfy_pack/unpacker_core.py:863
↓ 1 callersFunctioncheck_github_connection
检查是否能连接到 GitHub Returns: (是否可连接, 错误信息)
src/comfy_pack/unpacker_core.py:203
↓ 1 callersFunctioncheck_plugin_versions
检查插件版本差异 Returns: { 'to_install': [{'url': ..., 'commit': ...}], 'to_update': [{'name': ..., 'current':
src/comfy_pack/unpacker_core.py:667
↓ 1 callersFunctioncopy_workflow_files
复制工作流文件到 ComfyUI user/default 目录 Args: pack_dir: 解压后的临时目录 comfyui_dir: ComfyUI 根目录 cpack_path: 压缩包文件路径(用于获取文件名)
src/comfy_pack/unpacker_core.py:1801
↓ 1 callersFunctioncreateDownloadModal
()
web/main.js:199
↓ 1 callersFunctioncreatePackModal
()
web/main.js:114
↓ 1 callersMethoddetect_git
自动检测 Git
src/comfy_pack/unpacker_gui.py:724
↓ 1 callersMethoddetect_python
自动检测 Python 环境
src/comfy_pack/unpacker_gui.py:668
↓ 1 callersFunctiongenerate_input_model
Generates a pydantic model from the input definition. Args: workflow (dict): The workflow template to generate the model from.
src/comfy_pack/utils.py:120
↓ 1 callersMethodgetHtml
()
web/main.js:401
↓ 1 callersMethodgetSelectedData
()
web/main.js:422
↓ 1 callersFunctiongetWidget
(widget)
web/dynamic.js:4
↓ 1 callersMethodget_icon_path
获取图标文件路径
src/comfy_pack/unpacker_gui.py:341
↓ 1 callersFunctionget_installed_packages
获取已安装的包列表和版本
src/comfy_pack/unpacker_core.py:454
↓ 1 callersFunctionget_installed_plugins
获取已安装的插件和当前 commit 返回: {插件名: {'commit': 'xxx', 'url': 'xxx', 'path': Path}}
src/comfy_pack/unpacker_core.py:471
↓ 1 callersFunctionget_search_url
Generate custom search URLs for model on HuggingFace and CivitAI
src/comfy_pack/package.py:210
↓ 1 callersMethodget_selected_python
获取选中的 Python 路径
src/comfy_pack/unpacker_gui.py:193
↓ 1 callersFunctionget_snapshot_path
()
nodes/api.py:64
↓ 1 callersMethodinit
()
web/main.js:417
↓ 1 callersMethodinit_ui
初始化UI
src/comfy_pack/unpacker_gui.py:401
↓ 1 callersFunctioninstall_comfyui
(snapshot, workspace: Path, verbose: int = 0)
src/comfy_pack/package.py:59
↓ 1 callersFunctioninstall_dependencies
( python_version: str, req_files: list[str], workspace: Path, verbose: int = 0, no_deps: b
src/comfy_pack/package.py:138
↓ 1 callersFunctioninstall_dependencies_to_existing
安装或更新 Python 依赖
src/comfy_pack/unpacker_core.py:1710
↓ 1 callersFunctioninstall_or_update_plugins
安装或更新插件
src/comfy_pack/unpacker_core.py:1051
↓ 1 callersFunctionis_network_error
检测错误信息是否是网络相关错误
src/comfy_pack/unpacker_core.py:247
↓ 1 callersFunctionload_config
加载配置文件
src/comfy_pack/unpacker_gui.py:55
↓ 1 callersMethodload_previous_config
加载上次的配置
src/comfy_pack/unpacker_gui.py:359
↓ 1 callersFunctionmain
CLI 主入口 Args: args: 命令行参数列表,如果为 None 则使用 sys.argv Returns: 退出码:0 表示成功,非 0 表示失败
src/comfy_pack/unpacker_cli.py:44
↓ 1 callersFunctionpopulate_workflow
Fills the input values and output path into the workflow. Args: workflow (dict): The workflow template to populate. output_p
src/comfy_pack/utils.py:181
↓ 1 callersFunctionprint_banner
打印启动横幅
src/comfy_pack/unpacker_cli.py:35
↓ 1 callersFunctionretrieve_workflow_outputs
Gets the output file(s) from the workflow. Args: workflow (dict): The workflow template to retrieve outputs from. output_pat
src/comfy_pack/utils.py:217
↓ 1 callersFunctionrun_workflow
Run a ComfyUI workflow. This method executes a given workflow, populates it with input data, and retrieves the output. Args:
src/comfy_pack/run.py:203
↓ 1 callersFunctionsave_config
保存配置文件
src/comfy_pack/unpacker_gui.py:92
↓ 1 callersFunctionset
(target, prop, value)
web/dynamic.js:21
↓ 1 callersMethodstop
Stop the ComfyUI process. This method stops the running ComfyUI process and cleans up the temporary directory if necessary.
src/comfy_pack/run.py:163
↓ 1 callersFunctionswitch_comfyui_version
切换 ComfyUI 到指定版本 Args: comfyui_dir: ComfyUI 根目录 target_commit: 目标 commit hash git_exe: Git 可执行文件路径 log_c
src/comfy_pack/unpacker_core.py:556
Method__enter__
(self)
src/comfy_pack/run.py:186
Method__exit__
(self, exc_type, exc_val, exc_tb)
src/comfy_pack/run.py:190
Method__init__
Args: workspace (str, optional): The workspace path for ComfyUI. If not specified, runner will try to connect to an existing Comf
src/comfy_pack/run.py:50
Method__init__
( self, cpack_path: Path, comfyui_dir: Path, python_exe: Path, git_exe
src/comfy_pack/unpacker_gui.py:108
Method__init__
(self, python_paths: list, parent=None)
src/comfy_pack/unpacker_gui.py:164
Method__init__
(self, custom_message: str = "", parent=None)
src/comfy_pack/unpacker_gui.py:204
FunctionbeforeRegisterNodeDef
(nodeType, nodeData)
web/dynamic.js:49
Functionbento_cmd
Build a bento from the source, which can be either a .cpack.zip file or a bento tag.
src/comfy_pack/cli.py:459
Methodbrowse_comfyui
浏览选择 ComfyUI 目录
src/comfy_pack/unpacker_gui.py:650
Methodbrowse_cpack
浏览选择压缩包
src/comfy_pack/unpacker_gui.py:634
Functioncallback
(progress)
src/comfy_pack/package.py:265
next →1–100 of 135, ranked by callers