Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
80 lines
2.9 KiB
Python
80 lines
2.9 KiB
Python
# Copyright (C) 2025 AIDC-AI
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
"""
|
|
Pixelle-Video Services
|
|
|
|
Core services providing atomic capabilities.
|
|
|
|
Services:
|
|
- LLMService: LLM text generation
|
|
- TTSService: Text-to-speech
|
|
- MediaService: Media generation (image & video)
|
|
- VideoService: Video processing
|
|
- FrameProcessor: Frame processing orchestrator
|
|
- PersistenceService: Task metadata and storyboard persistence
|
|
- HistoryManager: History management business logic
|
|
- ComfyBaseService: Base class for ComfyUI-based services
|
|
"""
|
|
|
|
from importlib import import_module
|
|
from typing import TYPE_CHECKING
|
|
|
|
# Do not eagerly import GPU/Comfy adapters. Importing any child module first
|
|
# executes this package initializer, and eager imports made health-only Pixelle
|
|
# deployments require the optional ComfyKit runtime. The actual service is
|
|
# resolved only when a caller asks for it.
|
|
if TYPE_CHECKING:
|
|
from services.comfy_base_service import ComfyBaseService
|
|
from services.frame_processor import FrameProcessor
|
|
from services.history_manager import HistoryManager
|
|
from services.llm_service import LLMService
|
|
from services.media import MediaService
|
|
from services.persistence import PersistenceService
|
|
from services.tts_service import TTSService
|
|
from services.video import VideoService
|
|
|
|
_EXPORTS = {
|
|
"ComfyBaseService": ("services.comfy_base_service", "ComfyBaseService"),
|
|
"LLMService": ("services.llm_service", "LLMService"),
|
|
"TTSService": ("services.tts_service", "TTSService"),
|
|
"MediaService": ("services.media", "MediaService"),
|
|
"ImageService": ("services.media", "MediaService"),
|
|
"VideoService": ("services.video", "VideoService"),
|
|
"FrameProcessor": ("services.frame_processor", "FrameProcessor"),
|
|
"PersistenceService": ("services.persistence", "PersistenceService"),
|
|
"HistoryManager": ("services.history_manager", "HistoryManager"),
|
|
}
|
|
|
|
|
|
def __getattr__(name: str):
|
|
"""Lazily load optional engine services while preserving public imports."""
|
|
try:
|
|
module_name, attribute = _EXPORTS[name]
|
|
except KeyError as exc:
|
|
raise AttributeError(name) from exc
|
|
value = getattr(import_module(module_name), attribute)
|
|
globals()[name] = value
|
|
return value
|
|
|
|
__all__ = [
|
|
"ComfyBaseService",
|
|
"LLMService",
|
|
"TTSService",
|
|
"MediaService",
|
|
"ImageService", # Backward compatibility
|
|
"VideoService",
|
|
"FrameProcessor",
|
|
"PersistenceService",
|
|
"HistoryManager",
|
|
]
|