aishare-txt 1.0.3__tar.gz → 2025.11.6.13__tar.gz
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.
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/__init__.py +63 -63
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/ai/client.py +312 -312
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/core/analyzer.py +495 -495
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/core/config.py +323 -323
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/core/data_fetcher.py +593 -593
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/core/report_generator.py +783 -783
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/docs/AI_INTEGRATION.md +212 -212
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/docs/README_/351/207/215/346/236/204/350/257/264/346/230/216.md +202 -202
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/docs//351/207/215/346/236/204/345/256/214/346/210/220/346/200/273/347/273/223.md +148 -148
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/examples/legacy_api.py +259 -259
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/indicators/technical_indicators.py +507 -507
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/utils/stock_list.py +305 -305
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/utils/utils.py +578 -578
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/LICENSE +194 -194
- {aishare_txt-1.0.3/aishare_txt.egg-info → aishare_txt-2025.11.6.13}/PKG-INFO +475 -475
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13/aishare_txt.egg-info}/PKG-INFO +475 -475
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/aishare_txt.egg-info/not-zip-safe +1 -1
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/requirements-dev.txt +12 -12
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/requirements.txt +12 -12
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/setup.cfg +4 -4
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/setup.py +4 -5
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/ai/__init__.py +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/ai/providers/__init__.py +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/core/__init__.py +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/indicators/__init__.py +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/tests/__init__.py +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/AIShareTxt/utils/__init__.py +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/MANIFEST.in +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/README.md +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/aishare_txt.egg-info/SOURCES.txt +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/aishare_txt.egg-info/dependency_links.txt +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/aishare_txt.egg-info/entry_points.txt +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/aishare_txt.egg-info/requires.txt +0 -0
- {aishare_txt-1.0.3 → aishare_txt-2025.11.6.13}/aishare_txt.egg-info/top_level.txt +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
"""
|
|
2
|
-
AIShareTxt - 股票技术指标分析工具包
|
|
3
|
-
|
|
4
|
-
一个功能强大的股票技术指标分析工具,支持多种技术指标计算、
|
|
5
|
-
AI集成分析和报告生成功能。
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
__version__ = "
|
|
9
|
-
__author__ = "AIShareTxt Team"
|
|
10
|
-
|
|
11
|
-
# 导入核心类
|
|
12
|
-
from .core.analyzer import StockAnalyzer
|
|
13
|
-
from .core.data_fetcher import StockDataFetcher
|
|
14
|
-
from .core.report_generator import ReportGenerator
|
|
15
|
-
from .core.config import IndicatorConfig
|
|
16
|
-
|
|
17
|
-
# 导入技术指标
|
|
18
|
-
from .indicators.technical_indicators import TechnicalIndicators
|
|
19
|
-
|
|
20
|
-
# 导入AI客户端
|
|
21
|
-
from .ai.client import AIClient
|
|
22
|
-
|
|
23
|
-
# 导入工具
|
|
24
|
-
from .utils.utils import Logger
|
|
25
|
-
from .utils.stock_list import get_stock_list
|
|
26
|
-
|
|
27
|
-
# 定义公共API
|
|
28
|
-
__all__ = [
|
|
29
|
-
# 核心类
|
|
30
|
-
"StockAnalyzer",
|
|
31
|
-
"StockDataFetcher",
|
|
32
|
-
"ReportGenerator",
|
|
33
|
-
"IndicatorConfig",
|
|
34
|
-
|
|
35
|
-
# 技术指标
|
|
36
|
-
"TechnicalIndicators",
|
|
37
|
-
|
|
38
|
-
# AI客户端
|
|
39
|
-
"AIClient",
|
|
40
|
-
|
|
41
|
-
# 工具
|
|
42
|
-
"Logger",
|
|
43
|
-
"get_stock_list",
|
|
44
|
-
]
|
|
45
|
-
|
|
46
|
-
# 便捷函数
|
|
47
|
-
def analyze_stock(symbol, period="1y", use_ai=False, ai_provider="deepseek"):
|
|
48
|
-
"""
|
|
49
|
-
便捷函数:分析股票技术指标
|
|
50
|
-
|
|
51
|
-
参数:
|
|
52
|
-
symbol: 股票代码
|
|
53
|
-
period: 数据周期,默认1年
|
|
54
|
-
use_ai: 是否使用AI分析
|
|
55
|
-
ai_provider: AI提供商,支持"deepseek"或"zhipu"
|
|
56
|
-
|
|
57
|
-
返回:
|
|
58
|
-
分析结果字典
|
|
59
|
-
"""
|
|
60
|
-
analyzer = StockAnalyzer()
|
|
61
|
-
return analyzer.analyze_stock(symbol)
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
"""
|
|
2
|
+
AIShareTxt - 股票技术指标分析工具包
|
|
3
|
+
|
|
4
|
+
一个功能强大的股票技术指标分析工具,支持多种技术指标计算、
|
|
5
|
+
AI集成分析和报告生成功能。
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = "2025.11.06.13"
|
|
9
|
+
__author__ = "AIShareTxt Team"
|
|
10
|
+
|
|
11
|
+
# 导入核心类
|
|
12
|
+
from .core.analyzer import StockAnalyzer
|
|
13
|
+
from .core.data_fetcher import StockDataFetcher
|
|
14
|
+
from .core.report_generator import ReportGenerator
|
|
15
|
+
from .core.config import IndicatorConfig
|
|
16
|
+
|
|
17
|
+
# 导入技术指标
|
|
18
|
+
from .indicators.technical_indicators import TechnicalIndicators
|
|
19
|
+
|
|
20
|
+
# 导入AI客户端
|
|
21
|
+
from .ai.client import AIClient
|
|
22
|
+
|
|
23
|
+
# 导入工具
|
|
24
|
+
from .utils.utils import Logger
|
|
25
|
+
from .utils.stock_list import get_stock_list
|
|
26
|
+
|
|
27
|
+
# 定义公共API
|
|
28
|
+
__all__ = [
|
|
29
|
+
# 核心类
|
|
30
|
+
"StockAnalyzer",
|
|
31
|
+
"StockDataFetcher",
|
|
32
|
+
"ReportGenerator",
|
|
33
|
+
"IndicatorConfig",
|
|
34
|
+
|
|
35
|
+
# 技术指标
|
|
36
|
+
"TechnicalIndicators",
|
|
37
|
+
|
|
38
|
+
# AI客户端
|
|
39
|
+
"AIClient",
|
|
40
|
+
|
|
41
|
+
# 工具
|
|
42
|
+
"Logger",
|
|
43
|
+
"get_stock_list",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
# 便捷函数
|
|
47
|
+
def analyze_stock(symbol, period="1y", use_ai=False, ai_provider="deepseek"):
|
|
48
|
+
"""
|
|
49
|
+
便捷函数:分析股票技术指标
|
|
50
|
+
|
|
51
|
+
参数:
|
|
52
|
+
symbol: 股票代码
|
|
53
|
+
period: 数据周期,默认1年
|
|
54
|
+
use_ai: 是否使用AI分析
|
|
55
|
+
ai_provider: AI提供商,支持"deepseek"或"zhipu"
|
|
56
|
+
|
|
57
|
+
返回:
|
|
58
|
+
分析结果字典
|
|
59
|
+
"""
|
|
60
|
+
analyzer = StockAnalyzer()
|
|
61
|
+
return analyzer.analyze_stock(symbol)
|
|
62
|
+
|
|
63
|
+
|