__init__.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # -*- coding: utf-8 -*-
  2. """
  3. Trixy Core - Kernkomponenten des Trixy Voice Assistant Systems.
  4. Dieses Modul stellt alle grundlegenden Klassen und Funktionen bereit,
  5. die für den Betrieb von Trixy in allen Modi erforderlich sind.
  6. """
  7. from trixy_core.utils.version import VERSION, VERSION_STRING, PROTOCOL_VERSION
  8. from trixy_core.utils.debug import pinfo, pdebug, perror, pwarn, set_debug_mode
  9. from trixy_core.service.enums import ServicePriority, ServiceGroup, ServiceState
  10. from trixy_core.service.iservice import IService
  11. from trixy_core.service.service_container import ServiceContainer
  12. from trixy_core.events.enums import EventPriority
  13. from trixy_core.events.decorators import TrixyEvent
  14. from trixy_core.events.eventmanager import EventManager
  15. from trixy_core.application import IApplication
  16. from trixy_core.server import ServerApplication
  17. from trixy_core.client import ClientApplication
  18. from trixy_core.standalone import StandaloneApplication
  19. from trixy_core.trainer import TrainerApplication
  20. from trixy_core.arbitration import (
  21. WakewordArbitrator,
  22. ArbitrationConfig,
  23. ArbitrationResult,
  24. ArbitrationCandidate,
  25. ArbitrationStrategy,
  26. LoudestStrategy,
  27. CombinedStrategy,
  28. )
  29. from trixy_core.assets import (
  30. AssetManager,
  31. AssetService,
  32. AssetType,
  33. AssetInfo,
  34. AssetNotFoundError,
  35. )
  36. __all__ = [
  37. # Version
  38. "VERSION",
  39. "VERSION_STRING",
  40. "PROTOCOL_VERSION",
  41. # Debug
  42. "pinfo",
  43. "pdebug",
  44. "perror",
  45. "pwarn",
  46. "set_debug_mode",
  47. # Service
  48. "ServicePriority",
  49. "ServiceGroup",
  50. "ServiceState",
  51. "IService",
  52. "ServiceContainer",
  53. # Events
  54. "EventPriority",
  55. "TrixyEvent",
  56. "EventManager",
  57. # Applications
  58. "IApplication",
  59. "ServerApplication",
  60. "ClientApplication",
  61. "StandaloneApplication",
  62. "TrainerApplication",
  63. # Arbitration
  64. "WakewordArbitrator",
  65. "ArbitrationConfig",
  66. "ArbitrationResult",
  67. "ArbitrationCandidate",
  68. "ArbitrationStrategy",
  69. "LoudestStrategy",
  70. "CombinedStrategy",
  71. # Assets
  72. "AssetManager",
  73. "AssetService",
  74. "AssetType",
  75. "AssetInfo",
  76. "AssetNotFoundError",
  77. ]