finctx 0.3.2__tar.gz → 0.3.4__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.
Files changed (33) hide show
  1. {finctx-0.3.2 → finctx-0.3.4}/PKG-INFO +22 -16
  2. {finctx-0.3.2 → finctx-0.3.4}/README.md +12 -7
  3. {finctx-0.3.2 → finctx-0.3.4}/pyproject.toml +8 -7
  4. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/_version.py +1 -1
  5. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/data/endpoints.json +1 -1
  6. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/generated/api.py +10 -1
  7. {finctx-0.3.2 → finctx-0.3.4}/tests/test_discovery.py +5 -5
  8. {finctx-0.3.2 → finctx-0.3.4}/tests/test_generated_api.py +1 -1
  9. finctx-0.3.2/tests/test_python39_compatibility.py → finctx-0.3.4/tests/test_python_compatibility.py +5 -8
  10. finctx-0.3.4/tests/test_tracer_public_topics.py +108 -0
  11. {finctx-0.3.2 → finctx-0.3.4}/.gitignore +0 -0
  12. {finctx-0.3.2 → finctx-0.3.4}/LICENSE +0 -0
  13. {finctx-0.3.2 → finctx-0.3.4}/demo.py +0 -0
  14. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/__init__.py +0 -0
  15. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/client.py +0 -0
  16. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/credentials.py +0 -0
  17. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/data/marketdb-datasets.json +0 -0
  18. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/discovery.py +0 -0
  19. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/exceptions.py +0 -0
  20. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/generated/__init__.py +0 -0
  21. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/marketdb.py +0 -0
  22. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/py.typed +0 -0
  23. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/results.py +0 -0
  24. {finctx-0.3.2 → finctx-0.3.4}/src/finctx/signing.py +0 -0
  25. {finctx-0.3.2 → finctx-0.3.4}/tests/test_api_distribution_generation.py +0 -0
  26. {finctx-0.3.2 → finctx-0.3.4}/tests/test_api_names.py +0 -0
  27. {finctx-0.3.2 → finctx-0.3.4}/tests/test_build_python_release.py +0 -0
  28. {finctx-0.3.2 → finctx-0.3.4}/tests/test_build_skill_release.py +0 -0
  29. {finctx-0.3.2 → finctx-0.3.4}/tests/test_client.py +0 -0
  30. {finctx-0.3.2 → finctx-0.3.4}/tests/test_convenience.py +0 -0
  31. {finctx-0.3.2 → finctx-0.3.4}/tests/test_import_api_catalog.py +0 -0
  32. {finctx-0.3.2 → finctx-0.3.4}/tests/test_marketdb.py +0 -0
  33. {finctx-0.3.2 → finctx-0.3.4}/tests/test_signing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: finctx
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Finctx SDK for the Finctx Data API
5
5
  Project-URL: Homepage, https://www.ultrastiching.com
6
6
  Author: Finctx
@@ -8,19 +8,20 @@ License-Expression: Apache-2.0
8
8
  License-File: LICENSE
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: Programming Language :: Python :: 3 :: Only
11
- Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Typing :: Typed
13
- Requires-Python: >=3.9
14
- Requires-Dist: requests<3,>=2.31
15
- Requires-Dist: urllib3<2,>=1.26.20; python_version < '3.10'
13
+ Requires-Python: >=3.10
14
+ Requires-Dist: certifi>=2026.10.19
15
+ Requires-Dist: requests<3,>=2.33.0
16
+ Requires-Dist: urllib3<3,>=2.8.0
16
17
  Requires-Dist: websocket-client<1.9,>=1.8
17
18
  Provides-Extra: arrow
18
- Requires-Dist: pyarrow>=14; extra == 'arrow'
19
+ Requires-Dist: pyarrow>=14.0.1; extra == 'arrow'
19
20
  Provides-Extra: marketdb
20
- Requires-Dist: duckdb<1.6,>=1.4.1; extra == 'marketdb'
21
+ Requires-Dist: duckdb<1.6,>=1.4.2; extra == 'marketdb'
21
22
  Provides-Extra: test
22
- Requires-Dist: duckdb<1.6,>=1.4.1; extra == 'test'
23
- Requires-Dist: pyarrow>=14; extra == 'test'
23
+ Requires-Dist: duckdb<1.6,>=1.4.2; extra == 'test'
24
+ Requires-Dist: pyarrow>=14.0.1; extra == 'test'
24
25
  Requires-Dist: pytest<10,>=8; extra == 'test'
25
26
  Description-Content-Type: text/markdown
26
27
 
@@ -30,23 +31,25 @@ Description-Content-Type: text/markdown
30
31
 
31
32
  ## 1. 安装
32
33
 
33
- 需要 Python 3.9 或更高版本。安装下载的 SDK 包:
34
+ 需要 Python 3.10 或更高版本。本轮安全更新提高了运行环境要求;使用 Python 3.9 的项目需先升级 Python。
35
+
36
+ 安装下载的 SDK 包:
34
37
 
35
38
  ```bash
36
- python -m pip install ./finctx-0.3.1-py3-none-any.whl
39
+ python -m pip install ./finctx-0.3.3-py3-none-any.whl
37
40
  ```
38
41
 
39
42
  也可以直接安装源码包:
40
43
 
41
44
  ```bash
42
- python -m pip install ./finctx-0.3.1.tar.gz
45
+ python -m pip install ./finctx-0.3.3.tar.gz
43
46
  ```
44
47
 
45
48
  需要处理 Arrow 数据或使用本地数据库时,再安装相应扩展:
46
49
 
47
50
  ```bash
48
- python -m pip install "finctx[arrow]==0.3.1" # Arrow 数据转换
49
- python -m pip install "finctx[marketdb]==0.3.1" # 本地数据库
51
+ python -m pip install "finctx[arrow]==0.3.3" # Arrow 数据转换
52
+ python -m pip install "finctx[marketdb]==0.3.3" # 本地数据库
50
53
  ```
51
54
 
52
55
  ## 2. 配置 API Key
@@ -120,16 +123,19 @@ with FinctxClient() as client:
120
123
  feed = client.get_tracer_feed(limit=20)
121
124
  print(feed["items"])
122
125
 
123
- page = client.search_tracer_content(q="美债", scope="following", limit=20)
126
+ page = client.search_tracer_content(q="美债", scope="global", limit=20)
124
127
  print(page["items"])
125
128
 
129
+ public_topics = client.list_tracer_public_topics()
130
+ print(public_topics["items"]) # id、名称、描述、关注状态和主题状态
131
+
126
132
  topics = client.list_tracer_topics()
127
133
  print(topics)
128
134
  ```
129
135
 
130
136
  资讯结果使用 `items`,直接读取,不调用 `rows()`。新闻搜索返回 `has_more=True` 时,下一页传入 `next_cursor`,并保留相同筛选条件及返回的时间范围;Python 参数 `from_`、`to` 分别使用 `window["from"]`、`window["to"]`。
131
137
 
132
- 主题创建使用 `create_tracer_topic(query=...)`;关注和取消关注使用 `follow_tracer_topic(id=...)`、`unfollow_tracer_topic(id=...)`,主题 ID 从主题列表取得。创建回执表示任务已受理,不代表内容已生成完成。
138
+ 主题创建使用 `create_tracer_topic(query=...)`;关注和取消关注使用 `follow_tracer_topic(id=...)`、`unfollow_tracer_topic(id=...)`,主题 ID 从 `list_tracer_public_topics()` 返回的真实 `id` 取得;该列表无需先关注。普通关键词搜索使用 `scope="global"`,无需关注;`scope="following"` 只搜索自己的关注范围。创建回执表示任务已受理,不代表内容已生成完成。
133
139
 
134
140
  ## 订阅实时快讯
135
141
 
@@ -4,23 +4,25 @@
4
4
 
5
5
  ## 1. 安装
6
6
 
7
- 需要 Python 3.9 或更高版本。安装下载的 SDK 包:
7
+ 需要 Python 3.10 或更高版本。本轮安全更新提高了运行环境要求;使用 Python 3.9 的项目需先升级 Python。
8
+
9
+ 安装下载的 SDK 包:
8
10
 
9
11
  ```bash
10
- python -m pip install ./finctx-0.3.1-py3-none-any.whl
12
+ python -m pip install ./finctx-0.3.3-py3-none-any.whl
11
13
  ```
12
14
 
13
15
  也可以直接安装源码包:
14
16
 
15
17
  ```bash
16
- python -m pip install ./finctx-0.3.1.tar.gz
18
+ python -m pip install ./finctx-0.3.3.tar.gz
17
19
  ```
18
20
 
19
21
  需要处理 Arrow 数据或使用本地数据库时,再安装相应扩展:
20
22
 
21
23
  ```bash
22
- python -m pip install "finctx[arrow]==0.3.1" # Arrow 数据转换
23
- python -m pip install "finctx[marketdb]==0.3.1" # 本地数据库
24
+ python -m pip install "finctx[arrow]==0.3.3" # Arrow 数据转换
25
+ python -m pip install "finctx[marketdb]==0.3.3" # 本地数据库
24
26
  ```
25
27
 
26
28
  ## 2. 配置 API Key
@@ -94,16 +96,19 @@ with FinctxClient() as client:
94
96
  feed = client.get_tracer_feed(limit=20)
95
97
  print(feed["items"])
96
98
 
97
- page = client.search_tracer_content(q="美债", scope="following", limit=20)
99
+ page = client.search_tracer_content(q="美债", scope="global", limit=20)
98
100
  print(page["items"])
99
101
 
102
+ public_topics = client.list_tracer_public_topics()
103
+ print(public_topics["items"]) # id、名称、描述、关注状态和主题状态
104
+
100
105
  topics = client.list_tracer_topics()
101
106
  print(topics)
102
107
  ```
103
108
 
104
109
  资讯结果使用 `items`,直接读取,不调用 `rows()`。新闻搜索返回 `has_more=True` 时,下一页传入 `next_cursor`,并保留相同筛选条件及返回的时间范围;Python 参数 `from_`、`to` 分别使用 `window["from"]`、`window["to"]`。
105
110
 
106
- 主题创建使用 `create_tracer_topic(query=...)`;关注和取消关注使用 `follow_tracer_topic(id=...)`、`unfollow_tracer_topic(id=...)`,主题 ID 从主题列表取得。创建回执表示任务已受理,不代表内容已生成完成。
111
+ 主题创建使用 `create_tracer_topic(query=...)`;关注和取消关注使用 `follow_tracer_topic(id=...)`、`unfollow_tracer_topic(id=...)`,主题 ID 从 `list_tracer_public_topics()` 返回的真实 `id` 取得;该列表无需先关注。普通关键词搜索使用 `scope="global"`,无需关注;`scope="following"` 只搜索自己的关注范围。创建回执表示任务已受理,不代表内容已生成完成。
107
112
 
108
113
  ## 订阅实时快讯
109
114
 
@@ -9,17 +9,18 @@ description = "Finctx SDK for the Finctx Data API"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
11
11
  license-files = ["LICENSE"]
12
- requires-python = ">=3.9"
12
+ requires-python = ">=3.10"
13
13
  authors = [{ name = "Finctx" }]
14
14
  dependencies = [
15
- "requests>=2.31,<3",
16
- "urllib3>=1.26.20,<2; python_version < '3.10'",
15
+ "requests>=2.33.0,<3",
16
+ "certifi>=2026.10.19",
17
+ "urllib3>=2.8.0,<3",
17
18
  "websocket-client>=1.8,<1.9",
18
19
  ]
19
20
  classifiers = [
20
21
  "Programming Language :: Python :: 3",
21
22
  "Programming Language :: Python :: 3 :: Only",
22
- "Programming Language :: Python :: 3.9",
23
+ "Programming Language :: Python :: 3.10",
23
24
  "Typing :: Typed",
24
25
  ]
25
26
 
@@ -27,9 +28,9 @@ classifiers = [
27
28
  Homepage = "https://www.ultrastiching.com"
28
29
 
29
30
  [project.optional-dependencies]
30
- arrow = ["pyarrow>=14"]
31
- marketdb = ["duckdb>=1.4.1,<1.6"]
32
- test = ["pytest>=8,<10", "duckdb>=1.4.1,<1.6", "pyarrow>=14"]
31
+ arrow = ["pyarrow>=14.0.1"]
32
+ marketdb = ["duckdb>=1.4.2,<1.6"]
33
+ test = ["pytest>=8,<10", "duckdb>=1.4.2,<1.6", "pyarrow>=14.0.1"]
33
34
 
34
35
  [tool.hatch.build.targets.wheel]
35
36
  packages = ["src/finctx"]
@@ -1,3 +1,3 @@
1
1
  """Single source of truth for the Finctx Python SDK version."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.4"