staran 1.0.8__py3-none-any.whl → 1.0.10__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,38 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ Staran 集成功能模块
6
+ ==================
7
+
8
+ 包含与外部库和服务的集成功能:
9
+ - 数据可视化集成
10
+ - REST API服务器
11
+ """
12
+
13
+ try:
14
+ from .visualization import DateVisualization, ChartData, TimeSeriesPoint
15
+ VISUALIZATION_AVAILABLE = True
16
+ except ImportError:
17
+ VISUALIZATION_AVAILABLE = False
18
+ DateVisualization = None
19
+ ChartData = None
20
+ TimeSeriesPoint = None
21
+
22
+ try:
23
+ from .api_server import StaranAPIServer, StaranAPIHandler
24
+ API_SERVER_AVAILABLE = True
25
+ except ImportError:
26
+ API_SERVER_AVAILABLE = False
27
+ StaranAPIServer = None
28
+ StaranAPIHandler = None
29
+
30
+ __all__ = [
31
+ 'DateVisualization',
32
+ 'ChartData',
33
+ 'TimeSeriesPoint',
34
+ 'StaranAPIServer',
35
+ 'StaranAPIHandler',
36
+ 'VISUALIZATION_AVAILABLE',
37
+ 'API_SERVER_AVAILABLE'
38
+ ]