tsdata 0.0.9__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,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: tsdata
3
+ Version: 0.0.9
4
+ Summary: Lightweight proxy client for Tushare data APIs.
5
+ Home-page: https://example.com/tsdata
6
+ Author: tsdata maintainers
7
+ Author-email: wl20135@163.com
8
+ License: MIT
9
+ Keywords: tushare market data
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Requires-Python: >=3.8
18
+ Description-Content-Type: text/markdown
19
+ Requires-Dist: requests>=2.25
20
+ Requires-Dist: pandas>=1.2
21
+ Dynamic: author
22
+ Dynamic: author-email
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: home-page
27
+ Dynamic: keywords
28
+ Dynamic: license
29
+ Dynamic: requires-dist
30
+ Dynamic: requires-python
31
+ Dynamic: summary
32
+
33
+ # tsdata
34
+
35
+ 轻量级 Tushare 数据获取客户端,可通过导入包灵活使用。
36
+
37
+ ## 环境要求
38
+ - Python >= 3.8
39
+ - 已安装 `requests`、`pandas`(`pip install -r requirements.txt` 或直接 `pip install pandas requests`)
40
+
41
+ ## 安装
42
+ ```bash
43
+ pip install tsdata
44
+ ```
45
+ 或在项目中直接将 `tsdata` 模块加入 `PYTHONPATH`。
46
+
47
+ ## 配置
48
+ ### Token
49
+ 1. 从管理员处获取有效的 Tushare Token。
50
+ 2. 在任意位置调用 `tsdata.set_token("your-token")`
51
+
52
+ ## 快速上手
53
+ ```python
54
+ import tsdata as ts
55
+
56
+ # 只需在首次使用前设置一次
57
+ ts.set_token("your-token")
58
+ pro = ts.pro_api()
59
+
60
+ df = pro.query(
61
+ api_name="daily",
62
+ ts_code="000001.SZ",
63
+ trade_date="20240108",
64
+ fields="ts_code,open,close,vol,pct_chg",
65
+ )
66
+ print(df.head())
67
+
68
+ ```
69
+
@@ -0,0 +1,4 @@
1
+ tsdata-0.0.9.dist-info/METADATA,sha256=MAOtfnv1wOh-GQRgd6qi-5tYn-dXS1S66E9n0uKFT6c,1796
2
+ tsdata-0.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
3
+ tsdata-0.0.9.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
+ tsdata-0.0.9.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+