aishare-txt 1.0.0__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.
- AIShareTxt/__init__.py +63 -0
- AIShareTxt/ai/__init__.py +11 -0
- AIShareTxt/ai/client.py +313 -0
- AIShareTxt/ai/providers/__init__.py +8 -0
- AIShareTxt/core/__init__.py +17 -0
- AIShareTxt/core/analyzer.py +495 -0
- AIShareTxt/core/config.py +324 -0
- AIShareTxt/core/data_fetcher.py +466 -0
- AIShareTxt/core/report_generator.py +783 -0
- AIShareTxt/docs/AI_INTEGRATION.md +212 -0
- AIShareTxt/docs/README_/321/211/320/227/320/235/321/206/320/256/320/224/321/210/320/277/342/224/244/321/206/320/250/320/236.md +202 -0
- AIShareTxt/docs//321/211/320/227/320/235/321/206/320/256/320/224/321/205/320/276/320/234/321/206/320/230/320/240/321/206/320/220/342/225/227/321/207/342/225/227/320/243.md +148 -0
- AIShareTxt/examples/legacy_api.py +259 -0
- AIShareTxt/indicators/__init__.py +15 -0
- AIShareTxt/indicators/technical_indicators.py +507 -0
- AIShareTxt/tests/__init__.py +11 -0
- AIShareTxt/utils/__init__.py +17 -0
- AIShareTxt/utils/stock_list.py +305 -0
- AIShareTxt/utils/utils.py +578 -0
- aishare_txt-1.0.0.dist-info/METADATA +395 -0
- aishare_txt-1.0.0.dist-info/RECORD +25 -0
- aishare_txt-1.0.0.dist-info/WHEEL +5 -0
- aishare_txt-1.0.0.dist-info/entry_points.txt +2 -0
- aishare_txt-1.0.0.dist-info/licenses/LICENSE +194 -0
- aishare_txt-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aishare-txt
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: 股票技术指标分析工具包
|
|
5
|
+
Home-page: https://github.com/example/aishare-txt
|
|
6
|
+
Author: AIShareTxt Team
|
|
7
|
+
Author-email: aishare@example.com
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: akshare>=1.9.0
|
|
22
|
+
Requires-Dist: TA-Lib>=0.4.26
|
|
23
|
+
Requires-Dist: pandas>=1.5.0
|
|
24
|
+
Requires-Dist: numpy>=1.21.0
|
|
25
|
+
Requires-Dist: requests>=2.28.0
|
|
26
|
+
Requires-Dist: openai>=1.0.0
|
|
27
|
+
Requires-Dist: zhipuai>=2.0.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
31
|
+
Requires-Dist: black>=22.0.0; extra == "dev"
|
|
32
|
+
Requires-Dist: flake8>=5.0.0; extra == "dev"
|
|
33
|
+
Requires-Dist: sphinx>=5.0.0; extra == "dev"
|
|
34
|
+
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "dev"
|
|
35
|
+
Requires-Dist: jupyter>=1.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: ipython>=8.0.0; extra == "dev"
|
|
37
|
+
Provides-Extra: ai
|
|
38
|
+
Requires-Dist: openai>=1.0.0; extra == "ai"
|
|
39
|
+
Requires-Dist: zhipuai>=2.0.0; extra == "ai"
|
|
40
|
+
Dynamic: author
|
|
41
|
+
Dynamic: author-email
|
|
42
|
+
Dynamic: classifier
|
|
43
|
+
Dynamic: description
|
|
44
|
+
Dynamic: description-content-type
|
|
45
|
+
Dynamic: home-page
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
Dynamic: provides-extra
|
|
48
|
+
Dynamic: requires-dist
|
|
49
|
+
Dynamic: requires-python
|
|
50
|
+
Dynamic: summary
|
|
51
|
+
|
|
52
|
+
# AIShareTxt
|
|
53
|
+
|
|
54
|
+
[](https://python.org)
|
|
55
|
+
[](LICENSE)
|
|
56
|
+
|
|
57
|
+
**专业的股票技术指标分析工具包**
|
|
58
|
+
|
|
59
|
+
AIShareTxt是一个功能强大的Python股票技术指标分析工具包,提供全面的股票数据获取、技术指标计算、AI智能分析和详细报告生成功能。
|
|
60
|
+
|
|
61
|
+
## ✨ 主要功能
|
|
62
|
+
|
|
63
|
+
- 📊 **股票数据获取** - 基于akshare,支持多数据源获取实时和历史数据
|
|
64
|
+
- 📈 **技术指标计算** - 基于TA-Lib,支持50+种技术指标计算
|
|
65
|
+
- 🤖 **AI智能分析** - 集成DeepSeek和智谱AI,提供智能投资建议
|
|
66
|
+
- 📋 **详细报告生成** - 自动生成专业的股票分析报告
|
|
67
|
+
- 🔧 **模块化设计** - 清晰的模块结构,易于扩展和定制
|
|
68
|
+
- ⚡ **高性能计算** - 优化的算法,支持批量处理
|
|
69
|
+
|
|
70
|
+
## 🚀 快速安装
|
|
71
|
+
|
|
72
|
+
### 环境要求
|
|
73
|
+
|
|
74
|
+
- Python 3.8+
|
|
75
|
+
- Windows/Linux/macOS
|
|
76
|
+
|
|
77
|
+
### 安装方法
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# 从源码安装(推荐)
|
|
81
|
+
git clone https://github.com/your-repo/aishare-txt.git
|
|
82
|
+
cd aishare-txt
|
|
83
|
+
pip install -e .
|
|
84
|
+
|
|
85
|
+
# 或者直接安装依赖后使用项目
|
|
86
|
+
pip install -r requirements.txt
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### 依赖说明
|
|
90
|
+
|
|
91
|
+
项目会自动安装以下核心依赖:
|
|
92
|
+
- `akshare>=1.9.0` - 股票数据获取
|
|
93
|
+
- `TA-Lib>=0.4.26` - 技术指标计算
|
|
94
|
+
- `pandas>=1.5.0` - 数据处理
|
|
95
|
+
- `numpy>=1.21.0` - 数值计算
|
|
96
|
+
- `requests>=2.28.0` - HTTP请求
|
|
97
|
+
- `openai>=1.0.0` - AI分析(可选)
|
|
98
|
+
- `zhipuai>=2.0.0` - AI分析(可选)
|
|
99
|
+
|
|
100
|
+
## 📖 快速开始
|
|
101
|
+
|
|
102
|
+
### 基本使用
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
from AIShareTxt import StockAnalyzer
|
|
106
|
+
|
|
107
|
+
# 创建分析器实例
|
|
108
|
+
analyzer = StockAnalyzer()
|
|
109
|
+
|
|
110
|
+
# 分析股票(直接返回报告文本)
|
|
111
|
+
report = analyzer.analyze_stock("000001") # 平安银行
|
|
112
|
+
print(report)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 使用便捷函数
|
|
116
|
+
|
|
117
|
+
```python
|
|
118
|
+
from AIShareTxt import analyze_stock
|
|
119
|
+
|
|
120
|
+
# 简单分析(直接返回报告)
|
|
121
|
+
report = analyze_stock("000001")
|
|
122
|
+
print(report)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### AI智能分析
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
from AIShareTxt.ai.client import AIClient
|
|
129
|
+
|
|
130
|
+
# 创建AI客户端(需要配置API密钥)
|
|
131
|
+
ai_client = AIClient(api_key="your_api_key", provider="deepseek")
|
|
132
|
+
|
|
133
|
+
# 进行AI分析
|
|
134
|
+
if ai_client.is_available():
|
|
135
|
+
advice = ai_client.analyze_investment_recommendation(
|
|
136
|
+
technical_report="技术分析报告内容",
|
|
137
|
+
stock_code="000001"
|
|
138
|
+
)
|
|
139
|
+
print(f"AI投资建议: {ai_client.get_recommendation_text(advice)}")
|
|
140
|
+
else:
|
|
141
|
+
print("AI功能不可用,请检查API配置")
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### 技术指标计算
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
from AIShareTxt.indicators.technical_indicators import TechnicalIndicators
|
|
148
|
+
import pandas as pd
|
|
149
|
+
import numpy as np
|
|
150
|
+
|
|
151
|
+
# 创建技术指标计算器
|
|
152
|
+
ti = TechnicalIndicators()
|
|
153
|
+
|
|
154
|
+
# 准备股票数据(OHLCV格式)
|
|
155
|
+
data = pd.DataFrame({
|
|
156
|
+
'open': [100, 102, 101, 103, 104],
|
|
157
|
+
'high': [105, 106, 104, 107, 108],
|
|
158
|
+
'low': [99, 101, 100, 102, 103],
|
|
159
|
+
'close': [102, 101, 103, 104, 105],
|
|
160
|
+
'volume': [1000, 1200, 800, 1500, 900]
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
# 计算所有技术指标
|
|
164
|
+
indicators = ti.calculate_all_indicators(data)
|
|
165
|
+
|
|
166
|
+
# 计算单个指标
|
|
167
|
+
bias = ti.calculate_bias(data['close'], timeperiod=20)
|
|
168
|
+
ma_patterns = ti.analyze_ma_patterns(data['close'])
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### 获取股票列表
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
from AIShareTxt.utils.stock_list import get_stock_list
|
|
175
|
+
|
|
176
|
+
# 获取沪深300主板成分股
|
|
177
|
+
stocks = get_stock_list()
|
|
178
|
+
print(f"获取到 {len(stocks)} 只股票")
|
|
179
|
+
print(stocks.head())
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## 📁 项目结构
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
AIShareTxt/
|
|
186
|
+
├── core/ # 核心功能模块
|
|
187
|
+
│ ├── analyzer.py # 股票分析器(主要入口)
|
|
188
|
+
│ ├── data_fetcher.py # 数据获取器
|
|
189
|
+
│ ├── report_generator.py # 报告生成器
|
|
190
|
+
│ └── config.py # 配置管理
|
|
191
|
+
├── ai/ # AI分析模块
|
|
192
|
+
│ └── client.py # AI客户端
|
|
193
|
+
├── indicators/ # 技术指标模块
|
|
194
|
+
│ └── technical_indicators.py # 技术指标计算
|
|
195
|
+
├── utils/ # 工具模块
|
|
196
|
+
│ ├── utils.py # 通用工具类
|
|
197
|
+
│ └── stock_list.py # 股票列表工具
|
|
198
|
+
└── examples/ # 示例代码
|
|
199
|
+
└── legacy_api.py # 传统API示例
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## 📊 支持的技术指标
|
|
203
|
+
|
|
204
|
+
### 趋势指标
|
|
205
|
+
- 移动平均线(MA5, MA10, MA20, MA60)
|
|
206
|
+
- 指数移动平均线(EMA5, EMA10, EMA12, EMA20, EMA26)
|
|
207
|
+
- 加权移动平均线(WMA10, WMA20)
|
|
208
|
+
- 布林带(BOLL)
|
|
209
|
+
|
|
210
|
+
### 动量指标
|
|
211
|
+
- MACD指标
|
|
212
|
+
- RSI相对强弱指标(RSI9, RSI14)
|
|
213
|
+
- KDJ随机指标
|
|
214
|
+
- 威廉指标(Williams %R)
|
|
215
|
+
- CCI商品通道指标
|
|
216
|
+
|
|
217
|
+
### 成交量指标
|
|
218
|
+
- OBV能量潮指标
|
|
219
|
+
- VWAP成交量加权平均价
|
|
220
|
+
- 量比指标
|
|
221
|
+
|
|
222
|
+
### 波动率指标
|
|
223
|
+
- ATR平均真实波幅
|
|
224
|
+
- 历史波动率
|
|
225
|
+
|
|
226
|
+
### 资金流向指标
|
|
227
|
+
- 主力资金净流入
|
|
228
|
+
- 5日资金流向趋势
|
|
229
|
+
- DMI动向指标(+DI, -DI, ADX)
|
|
230
|
+
|
|
231
|
+
## ⚙️ 配置说明
|
|
232
|
+
|
|
233
|
+
### AI配置
|
|
234
|
+
|
|
235
|
+
在使用AI功能前,需要配置API密钥:
|
|
236
|
+
|
|
237
|
+
1. **DeepSeek配置**
|
|
238
|
+
```python
|
|
239
|
+
# 设置环境变量
|
|
240
|
+
export DEEPSEEK_API_KEY="your_deepseek_api_key"
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
2. **智谱AI配置**
|
|
244
|
+
```python
|
|
245
|
+
# 在代码中配置
|
|
246
|
+
ai_client = AIClient(api_key="your_zhipuai_api_key", provider="zhipuai")
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 分析配置
|
|
250
|
+
|
|
251
|
+
可以通过配置文件调整分析参数:
|
|
252
|
+
|
|
253
|
+
```python
|
|
254
|
+
from AIShareTxt.core.config import IndicatorConfig
|
|
255
|
+
|
|
256
|
+
config = IndicatorConfig()
|
|
257
|
+
|
|
258
|
+
# 调整均线周期
|
|
259
|
+
config.MA_PERIODS = {
|
|
260
|
+
'short': [5, 10, 20], # 短期均线
|
|
261
|
+
'medium': [60], # 中期均线
|
|
262
|
+
'long': [120, 250] # 长期均线
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
# 调整MACD参数
|
|
266
|
+
config.MACD_CONFIG = {
|
|
267
|
+
'fastperiod': 12,
|
|
268
|
+
'slowperiod': 26,
|
|
269
|
+
'signalperiod': 9
|
|
270
|
+
}
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
## 🔧 开发指南
|
|
274
|
+
|
|
275
|
+
### 安装开发依赖
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
pip install -e ".[dev]"
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### 运行示例
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
cd examples
|
|
285
|
+
python legacy_api.py
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### 代码风格
|
|
289
|
+
|
|
290
|
+
项目使用以下工具确保代码质量:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
# 代码格式化
|
|
294
|
+
black AIShareTxt/
|
|
295
|
+
|
|
296
|
+
# 代码检查
|
|
297
|
+
flake8 AIShareTxt/
|
|
298
|
+
|
|
299
|
+
# 运行测试
|
|
300
|
+
pytest
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## 📈 使用示例
|
|
304
|
+
|
|
305
|
+
### 完整分析流程
|
|
306
|
+
|
|
307
|
+
```python
|
|
308
|
+
from AIShareTxt import StockAnalyzer
|
|
309
|
+
|
|
310
|
+
def analyze_example():
|
|
311
|
+
"""完整的股票分析示例"""
|
|
312
|
+
|
|
313
|
+
# 1. 创建分析器
|
|
314
|
+
analyzer = StockAnalyzer()
|
|
315
|
+
|
|
316
|
+
# 2. 分析指定股票
|
|
317
|
+
stock_code = "000001" # 平安银行
|
|
318
|
+
report = analyzer.analyze_stock(stock_code)
|
|
319
|
+
|
|
320
|
+
# 3. 输出分析报告
|
|
321
|
+
print(f"股票 {stock_code} 分析报告:")
|
|
322
|
+
print("=" * 60)
|
|
323
|
+
print(report)
|
|
324
|
+
|
|
325
|
+
# 运行示例
|
|
326
|
+
if __name__ == "__main__":
|
|
327
|
+
analyze_example()
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### 批量分析
|
|
331
|
+
|
|
332
|
+
```python
|
|
333
|
+
from AIShareTxt.utils.stock_list import get_stock_list
|
|
334
|
+
from AIShareTxt import StockAnalyzer
|
|
335
|
+
|
|
336
|
+
def batch_analysis():
|
|
337
|
+
"""批量分析示例"""
|
|
338
|
+
|
|
339
|
+
# 获取股票列表
|
|
340
|
+
stocks = get_stock_list()
|
|
341
|
+
if stocks is None:
|
|
342
|
+
print("无法获取股票列表")
|
|
343
|
+
return
|
|
344
|
+
|
|
345
|
+
# 分析前5只股票
|
|
346
|
+
analyzer = StockAnalyzer()
|
|
347
|
+
|
|
348
|
+
for idx, stock in stocks.head(5).iterrows():
|
|
349
|
+
stock_code = stock['代码']
|
|
350
|
+
stock_name = stock['名称']
|
|
351
|
+
|
|
352
|
+
print(f"\n分析 {stock_name} ({stock_code})...")
|
|
353
|
+
print("=" * 50)
|
|
354
|
+
|
|
355
|
+
try:
|
|
356
|
+
report = analyzer.analyze_stock(stock_code)
|
|
357
|
+
print(report)
|
|
358
|
+
|
|
359
|
+
except Exception as e:
|
|
360
|
+
print(f" 分析失败: {e}")
|
|
361
|
+
|
|
362
|
+
batch_analysis()
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
## 🤝 贡献指南
|
|
366
|
+
|
|
367
|
+
欢迎贡献代码!请遵循以下步骤:
|
|
368
|
+
|
|
369
|
+
1. Fork 本项目
|
|
370
|
+
2. 创建特性分支 (`git checkout -b feature/AmazingFeature`)
|
|
371
|
+
3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)
|
|
372
|
+
4. 推送到分支 (`git push origin feature/AmazingFeature`)
|
|
373
|
+
5. 创建 Pull Request
|
|
374
|
+
|
|
375
|
+
## 📄 许可证
|
|
376
|
+
|
|
377
|
+
本项目采用木兰宽松许可证 第2版 - 查看 [LICENSE](LICENSE) 文件了解详情。
|
|
378
|
+
|
|
379
|
+
## ⚠️ 免责声明
|
|
380
|
+
|
|
381
|
+
本工具提供的所有信息仅供参考,不构成投资建议。投资有风险,入市需谨慎。
|
|
382
|
+
|
|
383
|
+
## 📞 联系方式
|
|
384
|
+
|
|
385
|
+
- 项目主页: https://github.com/your-repo/aishare-txt
|
|
386
|
+
- 问题反馈: https://github.com/your-repo/aishare-txt/issues
|
|
387
|
+
- 邮箱: aishare@example.com
|
|
388
|
+
|
|
389
|
+
## 🙏 致谢
|
|
390
|
+
|
|
391
|
+
感谢以下开源项目的支持:
|
|
392
|
+
- [akshare](https://github.com/akfamily/akshare) - 金融数据接口
|
|
393
|
+
- [TA-Lib](https://mrjbq7.github.io/ta-lib/) - 技术分析库
|
|
394
|
+
- [pandas](https://pandas.pydata.org/) - 数据分析库
|
|
395
|
+
- [numpy](http://www.numpy.org/) - 科学计算库
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
AIShareTxt/__init__.py,sha256=yLS7_NR-8zQL9WzLXb9lwF-LnN1wvbrljAk1hmshjKs,1469
|
|
2
|
+
AIShareTxt/ai/__init__.py,sha256=DxZeISk6icURNm-tFYfx_xvjWz7hHpEJxIsa9w5SXMI,167
|
|
3
|
+
AIShareTxt/ai/client.py,sha256=eYwiTZMCHBoKzbO60l0EXXB56q4MYxVAJSMwRo9jbYw,11620
|
|
4
|
+
AIShareTxt/ai/providers/__init__.py,sha256=xTHQjb3D8uhzORRK0PLIAtMGQjBiOAB1Ku_W56KWopU,140
|
|
5
|
+
AIShareTxt/core/__init__.py,sha256=amDOtASzAiPWcFF7bpqUDcbrnMB9cvbi3yb4XGUVkzs,390
|
|
6
|
+
AIShareTxt/core/analyzer.py,sha256=wSRKzILTI-bZSflcXv9l_nBXsfk3-K2f8OBjMQpHf6M,18277
|
|
7
|
+
AIShareTxt/core/config.py,sha256=tSsnBijqtJN573I8n0tTqpGeXqea16-22U6WWGJ6tSY,10190
|
|
8
|
+
AIShareTxt/core/data_fetcher.py,sha256=ziPs0jgd4D3BS5D5Kdttt3AR2EZOWdI1d9s6-sJYWB8,19786
|
|
9
|
+
AIShareTxt/core/report_generator.py,sha256=0oLwwplpnnll_QLwUq8lB3lFFtmp2sh2fE1PXENo2pg,34914
|
|
10
|
+
AIShareTxt/docs/AI_INTEGRATION.md,sha256=o_LShuGc2yflg-GtB9jZfoSI7FoLE7azLJ2KaZbdzwE,4826
|
|
11
|
+
AIShareTxt/docs/README_重构说明.md,sha256=ESqc8LrIjzdkvYT6EwPsovsy1D7erFg0Wrw7SlhWeeE,6067
|
|
12
|
+
AIShareTxt/docs/重构完成总结.md,sha256=_dxY8_MVQgq-xfzt6tm3wxfA7p3vMSjO6BR-bsQVWTk,5410
|
|
13
|
+
AIShareTxt/examples/legacy_api.py,sha256=K2WDT_WCpm3-vPaewT_0iV1zZavUh12dD0F1a3Lm4SE,8354
|
|
14
|
+
AIShareTxt/indicators/__init__.py,sha256=480C4jgAWc6oEi1mOsijK96qk6rijz1tRN0XF0lcfVA,319
|
|
15
|
+
AIShareTxt/indicators/technical_indicators.py,sha256=-pA5pAaYterxGluGmZivNnt27mQvdttLkkPDLR9MA7k,20808
|
|
16
|
+
AIShareTxt/tests/__init__.py,sha256=MlKVJxxbjvhfSuwtqxm3oTCvuR4vKKAF2RnteIreMzI,227
|
|
17
|
+
AIShareTxt/utils/__init__.py,sha256=0uIK4zwLAskgc6gWaJb1jLLYBuymHS4cB_bTezRz0W0,324
|
|
18
|
+
AIShareTxt/utils/stock_list.py,sha256=XNB5L38zcrGAfrfbKCkr6rX0LgvC-ARZEZ6Yw_7AmUg,12643
|
|
19
|
+
AIShareTxt/utils/utils.py,sha256=moitjd_pInNX0AuLMDH68zHoJExn_LRIWXSHAedqR3A,18626
|
|
20
|
+
aishare_txt-1.0.0.dist-info/licenses/LICENSE,sha256=XSvtcrKVUiuUFjMkfG9j3uejIjZQY17bVdkVb4Ztxlk,9441
|
|
21
|
+
aishare_txt-1.0.0.dist-info/METADATA,sha256=hVMiwomzUs8QrB-aspCEeJXGz2fd3VrmlnYYo9ZPItk,10380
|
|
22
|
+
aishare_txt-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
23
|
+
aishare_txt-1.0.0.dist-info/entry_points.txt,sha256=oBpEICBCJsNJi8FpvmswG1rqeRMNz6c2KmVhZyEqXts,58
|
|
24
|
+
aishare_txt-1.0.0.dist-info/top_level.txt,sha256=xblaN5YdcyV6_Y9T9yFQgC7uettcJc8gKYCmw4UW9I4,11
|
|
25
|
+
aishare_txt-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
木兰宽松许可证,第2版
|
|
2
|
+
|
|
3
|
+
木兰宽松许可证,第2版
|
|
4
|
+
|
|
5
|
+
2020年1月 http://license.coscl.org.cn/MulanPSL2
|
|
6
|
+
|
|
7
|
+
您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
|
|
8
|
+
|
|
9
|
+
0. 定义
|
|
10
|
+
|
|
11
|
+
“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
|
|
12
|
+
|
|
13
|
+
“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
|
|
14
|
+
|
|
15
|
+
“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
|
|
16
|
+
|
|
17
|
+
“法人实体” 是指提交贡献的机构及其“关联实体”。
|
|
18
|
+
|
|
19
|
+
“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是
|
|
20
|
+
指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
|
|
21
|
+
|
|
22
|
+
1. 授予版权许可
|
|
23
|
+
|
|
24
|
+
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可
|
|
25
|
+
以复制、使用、修改、分发其“贡献”,不论修改与否。
|
|
26
|
+
|
|
27
|
+
2. 授予专利许可
|
|
28
|
+
|
|
29
|
+
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定
|
|
30
|
+
撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡
|
|
31
|
+
献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软
|
|
32
|
+
件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“
|
|
33
|
+
关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或
|
|
34
|
+
其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权
|
|
35
|
+
行动之日终止。
|
|
36
|
+
|
|
37
|
+
3. 无商标许可
|
|
38
|
+
|
|
39
|
+
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定
|
|
40
|
+
的声明义务而必须使用除外。
|
|
41
|
+
|
|
42
|
+
4. 分发限制
|
|
43
|
+
|
|
44
|
+
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“
|
|
45
|
+
本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
|
|
46
|
+
|
|
47
|
+
5. 免责声明与责任限制
|
|
48
|
+
|
|
49
|
+
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对
|
|
50
|
+
任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于
|
|
51
|
+
何种法律理论,即使其曾被建议有此种损失的可能性。
|
|
52
|
+
|
|
53
|
+
6. 语言
|
|
54
|
+
|
|
55
|
+
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文
|
|
56
|
+
版为准。
|
|
57
|
+
|
|
58
|
+
条款结束
|
|
59
|
+
|
|
60
|
+
如何将木兰宽松许可证,第2版,应用到您的软件
|
|
61
|
+
|
|
62
|
+
如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
|
|
63
|
+
|
|
64
|
+
1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
|
|
65
|
+
|
|
66
|
+
2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
|
|
67
|
+
|
|
68
|
+
3, 请将如下声明文本放入每个源文件的头部注释中。
|
|
69
|
+
|
|
70
|
+
Copyright (c) [Year] [name of copyright holder]
|
|
71
|
+
[Software Name] is licensed under Mulan PSL v2.
|
|
72
|
+
You can use this software according to the terms and conditions of the Mulan
|
|
73
|
+
PSL v2.
|
|
74
|
+
You may obtain a copy of Mulan PSL v2 at:
|
|
75
|
+
http://license.coscl.org.cn/MulanPSL2
|
|
76
|
+
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
|
|
77
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
78
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
79
|
+
See the Mulan PSL v2 for more details.
|
|
80
|
+
|
|
81
|
+
Mulan Permissive Software License,Version 2
|
|
82
|
+
|
|
83
|
+
Mulan Permissive Software License,Version 2 (Mulan PSL v2)
|
|
84
|
+
|
|
85
|
+
January 2020 http://license.coscl.org.cn/MulanPSL2
|
|
86
|
+
|
|
87
|
+
Your reproduction, use, modification and distribution of the Software shall
|
|
88
|
+
be subject to Mulan PSL v2 (this License) with the following terms and
|
|
89
|
+
conditions:
|
|
90
|
+
|
|
91
|
+
0. Definition
|
|
92
|
+
|
|
93
|
+
Software means the program and related documents which are licensed under
|
|
94
|
+
this License and comprise all Contribution(s).
|
|
95
|
+
|
|
96
|
+
Contribution means the copyrightable work licensed by a particular
|
|
97
|
+
Contributor under this License.
|
|
98
|
+
|
|
99
|
+
Contributor means the Individual or Legal Entity who licenses its
|
|
100
|
+
copyrightable work under this License.
|
|
101
|
+
|
|
102
|
+
Legal Entity means the entity making a Contribution and all its
|
|
103
|
+
Affiliates.
|
|
104
|
+
|
|
105
|
+
Affiliates means entities that control, are controlled by, or are under
|
|
106
|
+
common control with the acting entity under this License, ‘control’ means
|
|
107
|
+
direct or indirect ownership of at least fifty percent (50%) of the voting
|
|
108
|
+
power, capital or other securities of controlled or commonly controlled
|
|
109
|
+
entity.
|
|
110
|
+
|
|
111
|
+
1. Grant of Copyright License
|
|
112
|
+
|
|
113
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
114
|
+
grants to you a perpetual, worldwide, royalty-free, non-exclusive,
|
|
115
|
+
irrevocable copyright license to reproduce, use, modify, or distribute its
|
|
116
|
+
Contribution, with modification or not.
|
|
117
|
+
|
|
118
|
+
2. Grant of Patent License
|
|
119
|
+
|
|
120
|
+
Subject to the terms and conditions of this License, each Contributor hereby
|
|
121
|
+
grants to you a perpetual, worldwide, royalty-free, non-exclusive,
|
|
122
|
+
irrevocable (except for revocation under this Section) patent license to
|
|
123
|
+
make, have made, use, offer for sale, sell, import or otherwise transfer its
|
|
124
|
+
Contribution, where such patent license is only limited to the patent claims
|
|
125
|
+
owned or controlled by such Contributor now or in future which will be
|
|
126
|
+
necessarily infringed by its Contribution alone, or by combination of the
|
|
127
|
+
Contribution with the Software to which the Contribution was contributed.
|
|
128
|
+
The patent license shall not apply to any modification of the Contribution,
|
|
129
|
+
and any other combination which includes the Contribution. If you or your
|
|
130
|
+
Affiliates directly or indirectly institute patent litigation (including a
|
|
131
|
+
cross claim or counterclaim in a litigation) or other patent enforcement
|
|
132
|
+
activities against any individual or entity by alleging that the Software or
|
|
133
|
+
any Contribution in it infringes patents, then any patent license granted to
|
|
134
|
+
you under this License for the Software shall terminate as of the date such
|
|
135
|
+
litigation or activity is filed or taken.
|
|
136
|
+
|
|
137
|
+
3. No Trademark License
|
|
138
|
+
|
|
139
|
+
No trademark license is granted to use the trade names, trademarks, service
|
|
140
|
+
marks, or product names of Contributor, except as required to fulfill notice
|
|
141
|
+
requirements in section 4.
|
|
142
|
+
|
|
143
|
+
4. Distribution Restriction
|
|
144
|
+
|
|
145
|
+
You may distribute the Software in any medium with or without modification,
|
|
146
|
+
whether in source or executable forms, provided that you provide recipients
|
|
147
|
+
with a copy of this License and retain copyright, patent, trademark and
|
|
148
|
+
disclaimer statements in the Software.
|
|
149
|
+
|
|
150
|
+
5. Disclaimer of Warranty and Limitation of Liability
|
|
151
|
+
|
|
152
|
+
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY
|
|
153
|
+
KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR
|
|
154
|
+
COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT
|
|
155
|
+
LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
156
|
+
FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO
|
|
157
|
+
MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF
|
|
158
|
+
THE POSSIBILITY OF SUCH DAMAGES.
|
|
159
|
+
|
|
160
|
+
6. Language
|
|
161
|
+
|
|
162
|
+
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION
|
|
163
|
+
AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF
|
|
164
|
+
DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION
|
|
165
|
+
SHALL PREVAIL.
|
|
166
|
+
|
|
167
|
+
END OF THE TERMS AND CONDITIONS
|
|
168
|
+
|
|
169
|
+
How to Apply the Mulan Permissive Software License,Version 2
|
|
170
|
+
(Mulan PSL v2) to Your Software
|
|
171
|
+
|
|
172
|
+
To apply the Mulan PSL v2 to your work, for easy identification by
|
|
173
|
+
recipients, you are suggested to complete following three steps:
|
|
174
|
+
|
|
175
|
+
i. Fill in the blanks in following statement, including insert your software
|
|
176
|
+
name, the year of the first publication of your software, and your name
|
|
177
|
+
identified as the copyright owner;
|
|
178
|
+
|
|
179
|
+
ii. Create a file named "LICENSE" which contains the whole context of this
|
|
180
|
+
License in the first directory of your software package;
|
|
181
|
+
|
|
182
|
+
iii. Attach the statement to the appropriate annotated syntax at the
|
|
183
|
+
beginning of each source file.
|
|
184
|
+
|
|
185
|
+
Copyright (c) [Year] [name of copyright holder]
|
|
186
|
+
[Software Name] is licensed under Mulan PSL v2.
|
|
187
|
+
You can use this software according to the terms and conditions of the Mulan
|
|
188
|
+
PSL v2.
|
|
189
|
+
You may obtain a copy of Mulan PSL v2 at:
|
|
190
|
+
http://license.coscl.org.cn/MulanPSL2
|
|
191
|
+
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
|
|
192
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
193
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
194
|
+
See the Mulan PSL v2 for more details.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
AIShareTxt
|