datasinking 0.2.5__tar.gz → 0.2.7__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datasinking
3
- Version: 0.2.5
4
- Summary: Python client for DataSinking — full-text Asian financial reports (China, Korea, Japan) as Markdown.
3
+ Version: 0.2.7
4
+ Summary: Python client for DataSinking — full-text Asian financial reports (China, Korea, Japan, Taiwan) as Markdown.
5
5
  Author: DataSinking
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://datasink.ing
@@ -1,11 +1,11 @@
1
- # -*- coding: utf-8 -*-
2
- """版本号的**唯一来源**。
3
-
4
- pyproject.toml 用 `dynamic = ["version"]` 从这里读,`client.py` 的 User-Agent 也读它。
5
-
6
- 为什么单独抽一个文件:之前 pyproject.toml 和 `__init__.py` 各写各的版本号,
7
- 结果 `__version__` 长期停在 0.1.0 没跟上(发 0.2.4 时才发现,User-Agent 里也一直
8
- 写着旧版本)。现在只有这一处需要改。
9
- """
10
-
11
- __version__ = "0.2.5"
1
+ # -*- coding: utf-8 -*-
2
+ """版本号的**唯一来源**。
3
+
4
+ pyproject.toml 用 `dynamic = ["version"]` 从这里读,`client.py` 的 User-Agent 也读它。
5
+
6
+ 为什么单独抽一个文件:之前 pyproject.toml 和 `__init__.py` 各写各的版本号,
7
+ 结果 `__version__` 长期停在 0.1.0 没跟上(发 0.2.4 时才发现,User-Agent 里也一直
8
+ 写着旧版本)。现在只有这一处需要改。
9
+ """
10
+
11
+ __version__ = "0.2.7"
@@ -23,6 +23,8 @@ from typing import Optional
23
23
 
24
24
  import requests
25
25
 
26
+ from ._version import __version__ # 版本号唯一来源(原来是硬编码,漂到了 0.2.3)
27
+
26
28
  # mcp v1 uses FastMCP; v2 renamed it to MCPServer. Support both.
27
29
  try:
28
30
  from mcp.server.fastmcp import FastMCP # mcp v1
@@ -35,14 +37,14 @@ API_KEY = os.environ.get("DATASINK_API_KEY", "")
35
37
  mcp = FastMCP(
36
38
  "DataSinking",
37
39
  title="DataSinking — Full-text Asian Financial Reports",
38
- description="Full-text Asian financial reports (China, Korea, Japan) as clean Markdown via API, with chapter-level access for RAG and AI agents.",
39
- version="0.2.3",
40
+ description="Full-text Asian financial reports (China, Korea, Japan, Taiwan) as clean Markdown via API, with chapter-level access for RAG and AI agents.",
41
+ version=__version__,
40
42
  instructions=(
41
43
  "DataSinking serves full-text financial reports (annual / semi-annual / quarterly) "
42
- "from China, Korea and Japan as clean Markdown, ready for LLM reading and RAG. "
44
+ "from China, Korea, Japan and Taiwan as clean Markdown, ready for LLM reading and RAG. "
43
45
  "Use FMP-style symbols: 600519.SS (Kweichow Moutai), 005930.KS (Samsung Electronics), "
44
- "7203.T (Toyota). To save tokens, prefer get_section to pull one chapter (e.g. MD&A) "
45
- "instead of get_report for the whole document."
46
+ "7203.T (Toyota), 2330.TW (TSMC). To save tokens, prefer get_section to pull one chapter "
47
+ "(e.g. MD&A) instead of get_report for the whole document."
46
48
  ),
47
49
  )
48
50
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datasinking
3
- Version: 0.2.5
4
- Summary: Python client for DataSinking — full-text Asian financial reports (China, Korea, Japan) as Markdown.
3
+ Version: 0.2.7
4
+ Summary: Python client for DataSinking — full-text Asian financial reports (China, Korea, Japan, Taiwan) as Markdown.
5
5
  Author: DataSinking
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://datasink.ing
@@ -7,7 +7,7 @@ name = "datasinking"
7
7
  # 版本号唯一来源 = datasinking/_version.py(client.py 的 User-Agent 也读它)。
8
8
  # 以前这里和包内 __version__ 各写各的,结果漂了半年(发 0.2.4 时才发现 __init__ 还停在 0.1.0)。
9
9
  dynamic = ["version"]
10
- description = "Python client for DataSinking — full-text Asian financial reports (China, Korea, Japan) as Markdown."
10
+ description = "Python client for DataSinking — full-text Asian financial reports (China, Korea, Japan, Taiwan) as Markdown."
11
11
  readme = "README.md"
12
12
  requires-python = ">=3.8"
13
13
  license = { text = "MIT" }
File without changes
File without changes
File without changes