equal-data 0.0.1__tar.gz → 0.0.2__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.
@@ -350,7 +350,7 @@
350
350
  <updated>1773114399905</updated>
351
351
  <workItem from="1773114401077" duration="5815000" />
352
352
  <workItem from="1773199615751" duration="5124000" />
353
- <workItem from="1773365873362" duration="17542000" />
353
+ <workItem from="1773365873362" duration="24364000" />
354
354
  </task>
355
355
  <servers />
356
356
  </component>
@@ -365,11 +365,6 @@
365
365
  <line>59</line>
366
366
  <option name="timeStamp" value="2" />
367
367
  </line-breakpoint>
368
- <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
369
- <url>file://$PROJECT_DIR$/../equal-data/src/kjj/core.py</url>
370
- <line>36</line>
371
- <option name="timeStamp" value="4" />
372
- </line-breakpoint>
373
368
  </breakpoints>
374
369
  </breakpoint-manager>
375
370
  </component>
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: equal-data
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: 金融数据获取 Skill,支持 100+ 个金融数据接口。kjiujing 官方提供的SKILL工具包。
5
- Project-URL: Homepage, https://github.com/username/my_project
5
+ Project-URL: Homepage, https://github.com/mocoap-wang/equal-data-skill
6
6
  Project-URL: Documentation, https://readthedocs.org
7
- Project-URL: Repository, https://github.com/username/my_project.git
8
- Project-URL: Issues, https://github.com/username/my_project/issues
7
+ Project-URL: Repository, https://github.com/mocoap-wang/equal-data-skill.git
8
+ Project-URL: Issues, https://github.com/mocoap-wang/equal-data-skill/issues
9
9
  Author-email: wangyanlei <wangyanlei310@163.com>
10
10
  License: MIT
11
11
  License-File: LICENSE
@@ -28,7 +28,7 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # My Package
30
30
 
31
- TuShare
31
+ equal-data
32
32
  ===============
33
33
 
34
34
 
@@ -46,33 +46,22 @@ Target Users
46
46
  Installation
47
47
  --------------
48
48
 
49
- pip install kjiujing
49
+ pip install equal-data
50
50
 
51
51
  Upgrade
52
52
  ---------------
53
53
 
54
- pip install kjiujing --upgrade
54
+ pip install equal-data --upgrade
55
55
 
56
56
  Quick Start
57
57
  --------------
58
58
 
59
59
  ::
60
60
 
61
- import kjiujing as kjj
61
+ import kjj as KjjApi
62
+ api = KjjApi("your token")
63
+
62
64
 
63
- ts.get_hist_data('600848')
64
65
 
65
- return::
66
-
67
- open high close low volume p_change ma5
68
- date
69
- 2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
70
- 2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
71
- 2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
72
- 2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
73
- 2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
74
- 2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
75
- 2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
76
- 2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
77
66
 
78
67
 
@@ -0,0 +1,39 @@
1
+ # My Package
2
+
3
+ equal-data
4
+ ===============
5
+
6
+
7
+ * easy to use as most of the data returned are pandas DataFrame objects
8
+ * can be easily saved as csv, excel or json files
9
+ * can be inserted into MySQL or Mongodb
10
+
11
+ Target Users
12
+ --------------
13
+
14
+ * financial market analyst of China
15
+ * learners of financial data analysis with pandas/NumPy
16
+ * people who are interested in China financial data
17
+
18
+ Installation
19
+ --------------
20
+
21
+ pip install equal-data
22
+
23
+ Upgrade
24
+ ---------------
25
+
26
+ pip install equal-data --upgrade
27
+
28
+ Quick Start
29
+ --------------
30
+
31
+ ::
32
+
33
+ import kjj as KjjApi
34
+ api = KjjApi("your token")
35
+
36
+
37
+
38
+
39
+
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "equal-data" # PyPI 上的包名(必须唯一,用连字符)
7
- version = "0.0.1" # 版本号
7
+ version = "0.0.2" # 版本号
8
8
  description = "金融数据获取 Skill,支持 100+ 个金融数据接口。kjiujing 官方提供的SKILL工具包。"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"} # 或 license = {file = "LICENSE"}
@@ -35,10 +35,10 @@ dev = [
35
35
  ]
36
36
 
37
37
  [project.urls] # PyPI 页面会显示这些链接
38
- Homepage = "https://github.com/username/my_project"
38
+ Homepage = "https://github.com/mocoap-wang/equal-data-skill"
39
39
  Documentation = "https://readthedocs.org"
40
- Repository = "https://github.com/username/my_project.git"
41
- Issues = "https://github.com/username/my_project/issues"
40
+ Repository = "https://github.com/mocoap-wang/equal-data-skill.git"
41
+ Issues = "https://github.com/mocoap-wang/equal-data-skill/issues"
42
42
 
43
43
  [tool.hatch.build.targets.wheel] # 构建配置
44
44
  packages = ["src/kjj"]
@@ -1,6 +1,6 @@
1
1
  """ 通过请求api 返回最终金融数据"""
2
2
 
3
- __version__ = "0.0.3"
3
+ __version__ = "0.0.2"
4
4
  from .core import (
5
5
  KjjApi
6
6
  )
@@ -29,7 +29,7 @@ class KjjApi:
29
29
  params = kwargs if kwargs else {}
30
30
  # 注意:request 参数是服务端注入的,客户端无需传递
31
31
  headers = {"Content-Type": "application/x-www-form-urlencoded",
32
- "Token": self.token}
32
+ "Token": f"Bearer {self.token}"}
33
33
  # 过滤 None 值
34
34
  payload = {to_camel_case(k): v for k, v in params.items() if v is not None}
35
35
  payload.update({"requestType": "GET"})
@@ -1,50 +0,0 @@
1
- # My Package
2
-
3
- TuShare
4
- ===============
5
-
6
-
7
- * easy to use as most of the data returned are pandas DataFrame objects
8
- * can be easily saved as csv, excel or json files
9
- * can be inserted into MySQL or Mongodb
10
-
11
- Target Users
12
- --------------
13
-
14
- * financial market analyst of China
15
- * learners of financial data analysis with pandas/NumPy
16
- * people who are interested in China financial data
17
-
18
- Installation
19
- --------------
20
-
21
- pip install kjiujing
22
-
23
- Upgrade
24
- ---------------
25
-
26
- pip install kjiujing --upgrade
27
-
28
- Quick Start
29
- --------------
30
-
31
- ::
32
-
33
- import kjiujing as kjj
34
-
35
- ts.get_hist_data('600848')
36
-
37
- return::
38
-
39
- open high close low volume p_change ma5
40
- date
41
- 2012-01-11 6.880 7.380 7.060 6.880 14129.96 2.62 7.060
42
- 2012-01-12 7.050 7.100 6.980 6.900 7895.19 -1.13 7.020
43
- 2012-01-13 6.950 7.000 6.700 6.690 6611.87 -4.01 6.913
44
- 2012-01-16 6.680 6.750 6.510 6.480 2941.63 -2.84 6.813
45
- 2012-01-17 6.660 6.880 6.860 6.460 8642.57 5.38 6.822
46
- 2012-01-18 7.000 7.300 6.890 6.880 13075.40 0.44 6.788
47
- 2012-01-19 6.690 6.950 6.890 6.680 6117.32 0.00 6.770
48
- 2012-01-20 6.870 7.080 7.010 6.870 6813.09 1.74 6.832
49
-
50
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes