telekinesis-dataengine 0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,43 @@
1
+ """Public API for the Telekinesis Data Engine.
2
+
3
+ Submodule imports are guarded because their third-party/runtime dependencies
4
+ (``mcap``, ``babyros``, ``telekinesis-datatypes``, Pillow) are optional: a
5
+ partial install should still expose whatever is usable. Any guarded import that
6
+ fails is logged at DEBUG so a genuine error (a bad import, a missing dependency,
7
+ a syntax-level ``ImportError``) is diagnosable instead of silently resurfacing
8
+ later as a misleading ``cannot import name '...'``. ``__all__`` lists only the
9
+ names that actually imported, so ``from telekinesis.dataengine import *`` never
10
+ raises for an unbound name.
11
+ """
12
+
13
+ from loguru import logger as _log
14
+
15
+ __all__: list[str] = []
16
+
17
+ try:
18
+ from telekinesis.dataengine.mcap.logger import MCAPLogger
19
+ except ImportError as e:
20
+ _log.debug(f"MCAPLogger unavailable (optional deps missing?): {e}")
21
+ else:
22
+ __all__.append("MCAPLogger")
23
+
24
+ try:
25
+ from telekinesis.dataengine.detection.logger import (
26
+ DetectionLogger,
27
+ YoloDetectionLogger,
28
+ RfDetrDetectionLogger,
29
+ )
30
+ except ImportError as e:
31
+ _log.debug(f"detection loggers unavailable (optional deps missing?): {e}")
32
+ else:
33
+ __all__ += ["DetectionLogger", "YoloDetectionLogger", "RfDetrDetectionLogger"]
34
+
35
+ try:
36
+ from telekinesis.dataengine.detection.node import (
37
+ DetectionLoggerPublisher,
38
+ DetectionLoggerSubscriber,
39
+ )
40
+ except ImportError as e:
41
+ _log.debug(f"detection pub/sub nodes unavailable (optional deps missing?): {e}")
42
+ else:
43
+ __all__ += ["DetectionLoggerPublisher", "DetectionLoggerSubscriber"]