datasinking 0.2.6__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.
- {datasinking-0.2.6 → datasinking-0.2.7}/PKG-INFO +1 -1
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking/_version.py +11 -11
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking/mcp_server.py +7 -5
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking.egg-info/PKG-INFO +1 -1
- {datasinking-0.2.6 → datasinking-0.2.7}/LICENSE +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/README.md +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking/__init__.py +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking/client.py +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking.egg-info/SOURCES.txt +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking.egg-info/dependency_links.txt +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking.egg-info/entry_points.txt +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking.egg-info/requires.txt +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/datasinking.egg-info/top_level.txt +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/pyproject.toml +0 -0
- {datasinking-0.2.6 → datasinking-0.2.7}/setup.cfg +0 -0
|
@@ -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.
|
|
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=
|
|
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
|
|
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
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|