mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 16:54:20 +08:00
feat!: rename project from xmtdx to easy-tdx
- Package directory: src/xmtdx/ -> src/easy_tdx/ - Import path: from easy_tdx import ... - pip install easy-tdx - Add LICENSE (MIT) with upstream attribution (pytdx, xmtdx) - Add NOTICE with detailed attribution - Update all examples, tests, scripts, docs - Bump version to 1.0.0 BREAKING CHANGE: import path changed from `xmtdx` to `easy_tdx` Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
9c5672b4d2
commit
50491f9aae
@@ -1,8 +1,8 @@
|
||||
"""xmtdx — 通达信 TCP 协议 A 股行情数据客户端。
|
||||
"""easy_tdx — 通达信 TCP 协议 A 股行情数据客户端。
|
||||
|
||||
快速开始::
|
||||
|
||||
from xmtdx import TdxClient, Market, KlineCategory
|
||||
from easy_tdx import TdxClient, Market, KlineCategory
|
||||
|
||||
with TdxClient("180.153.18.170") as c:
|
||||
count = c.get_security_count(Market.SH)
|
||||
@@ -11,7 +11,7 @@
|
||||
asyncio 版本::
|
||||
|
||||
import asyncio
|
||||
from xmtdx import AsyncTdxClient, Market, KlineCategory
|
||||
from easy_tdx import AsyncTdxClient, Market, KlineCategory
|
||||
|
||||
async def main():
|
||||
async with AsyncTdxClient("180.153.18.170") as c:
|
||||
@@ -75,4 +75,4 @@ __all__ = [
|
||||
"CALC_HOSTS",
|
||||
]
|
||||
|
||||
__version__ = "0.1.1"
|
||||
__version__ = "1.0.0"
|
||||
@@ -136,7 +136,7 @@ def _historical_fund_flow_from_records(
|
||||
# 同步客户端
|
||||
# ============================================================
|
||||
|
||||
_CACHE_DIR = Path.home() / ".xmtdx" / "cache"
|
||||
_CACHE_DIR = Path.home() / ".easy_tdx" / "cache"
|
||||
_CACHE_MAX_AGE = 86400 # 1 天
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""xmtdx.ex — 通达信扩展行情(期货、港股、外股等,端口 7727)。"""
|
||||
"""easy_tdx.ex — 通达信扩展行情(期货、港股、外股等,端口 7727)。"""
|
||||
|
||||
from .client import AsyncExTdxClient, ExTdxClient
|
||||
from .models import KNOWN_EX_HOSTS, KNOWN_EX_MARKETS
|
||||
@@ -1,8 +1,8 @@
|
||||
"""xmtdx 异常层次"""
|
||||
"""easy-tdx 异常层次"""
|
||||
|
||||
|
||||
class TdxError(Exception):
|
||||
"""所有 xmtdx 异常的基类"""
|
||||
"""所有 easy-tdx 异常的基类"""
|
||||
|
||||
|
||||
class TdxConnectionError(TdxError):
|
||||
Reference in New Issue
Block a user