__init__.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. Pixelle-Video - AI-powered video generator
  14. Convention-based system with unified configuration management.
  15. Usage:
  16. from pixelle_video import pixelle_video
  17. # Initialize
  18. await pixelle_video.initialize()
  19. # Use capabilities
  20. answer = await pixelle_video.llm("Explain atomic habits")
  21. audio = await pixelle_video.tts("Hello world")
  22. # Generate video with different pipelines
  23. # Standard pipeline (default)
  24. result = await pixelle_video.generate_video(
  25. text="如何提高学习效率",
  26. n_scenes=5
  27. )
  28. # Custom pipeline (template for your own logic)
  29. result = await pixelle_video.generate_video(
  30. text=your_content,
  31. pipeline="custom",
  32. custom_param_example="custom_value"
  33. )
  34. # Check available pipelines
  35. print(pixelle_video.pipelines.keys()) # dict_keys(['standard', 'custom'])
  36. """
  37. from pixelle_video.service import PixelleVideoCore, pixelle_video
  38. from pixelle_video.config import config_manager
  39. __version__ = "0.1.0"
  40. __all__ = ["PixelleVideoCore", "pixelle_video", "config_manager"]