返回 Pixelle-Video
__init__.py
根目录 / pixelle_video / __init__.py
1 # Copyright (C) 2025 AIDC-AI
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 # See the License for the specific language governing permissions and
11 # limitations under the License.
12
13 """
14 Pixelle-Video - AI-powered video generator
15
16 Convention-based system with unified configuration management.
17
18 Usage:
19 from pixelle_video import pixelle_video
20
21 # Initialize
22 await pixelle_video.initialize()
23
24 # Use capabilities
25 answer = await pixelle_video.llm("Explain atomic habits")
26 audio = await pixelle_video.tts("Hello world")
27
28 # Generate video with different pipelines
29 # Standard pipeline (default)
30 result = await pixelle_video.generate_video(
31 text="如何提高学习效率",
32 n_scenes=5
33 )
34
35 # Custom pipeline (template for your own logic)
36 result = await pixelle_video.generate_video(
37 text=your_content,
38 pipeline="custom",
39 custom_param_example="custom_value"
40 )
41
42 # Check available pipelines
43 print(pixelle_video.pipelines.keys()) # dict_keys(['standard', 'custom'])
44 """
45
46 from pixelle_video.service import PixelleVideoCore, pixelle_video
47 from pixelle_video.config import config_manager
48
49 __version__ = "0.2.0"
50
51 __all__ = ["PixelleVideoCore", "pixelle_video", "config_manager"]
52
52 lines PYTHON