refactor(package):重构包结构和导入路径 - 注释掉 test/__init__.py 中的包元数据和导入定义 - 在 video_extract_key_frames/__init__.py 中添加模块导入和 __all__ 定义 - 修改根 __init__.py 中的相对导入路径 - 统一 video_extract_key_frames/nodes.py 中的服务模块相对导入方式
27 lines
763 B
Python
27 lines
763 B
Python
from .video_extract_key_frames.nodes import ExtractKeyFrames, ExtractKeyFramesAndSplit
|
|
|
|
# A dictionary that contains all nodes you want to export with their names
|
|
# NOTE: names should be globally unique
|
|
NODE_CLASS_MAPPINGS = {
|
|
"ExtractKeyFrames": ExtractKeyFrames,
|
|
"ExtractKeyFramesAndSplit": ExtractKeyFramesAndSplit,
|
|
}
|
|
|
|
# A dictionary that contains the friendly/humanly readable titles for the nodes
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"ExtractKeyFrames": "Extract Key Frames",
|
|
"ExtractKeyFramesAndSplit": "Extract Key Frames & Split Video",
|
|
}
|
|
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
__all__ = [
|
|
"NODE_CLASS_MAPPINGS",
|
|
"NODE_DISPLAY_NAME_MAPPINGS",
|
|
"WEB_DIRECTORY",
|
|
]
|
|
|
|
__author__ = """guyouyue"""
|
|
__email__ = "guyuoyue@gmail.com"
|
|
__version__ = "1.0.0"
|