staran 1.0.9__py3-none-any.whl → 1.0.11__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.
- staran/__init__.py +50 -51
- staran/date/__init__.py +72 -87
- staran/date/core/__init__.py +24 -0
- staran/date/{core.py → core/core.py} +539 -8
- staran/date/core/lunar.py +150 -0
- staran/date/examples/v1010_features_demo.py +376 -0
- staran/date/extensions/__init__.py +48 -0
- staran/date/extensions/expressions.py +554 -0
- staran/date/extensions/solar_terms.py +417 -0
- staran/date/extensions/timezone.py +263 -0
- staran/date/integrations/__init__.py +38 -0
- staran/date/integrations/api_server.py +754 -0
- staran/date/integrations/visualization.py +689 -0
- staran/date/tests/test_v1010_features.py +495 -0
- {staran-1.0.9.dist-info → staran-1.0.11.dist-info}/METADATA +34 -8
- staran-1.0.11.dist-info/RECORD +34 -0
- staran-1.0.11.dist-info/entry_points.txt +2 -0
- staran/date/lunar.py +0 -320
- staran-1.0.9.dist-info/RECORD +0 -23
- /staran/date/{i18n.py → core/i18n.py} +0 -0
- {staran-1.0.9.dist-info → staran-1.0.11.dist-info}/WHEEL +0 -0
- {staran-1.0.9.dist-info → staran-1.0.11.dist-info}/licenses/LICENSE +0 -0
- {staran-1.0.9.dist-info → staran-1.0.11.dist-info}/top_level.txt +0 -0
@@ -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
|
+
]
|