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:
GitHub
2026-05-21 23:21:21 +08:00
co-authored by Claude Opus 4.7
parent 9c5672b4d2
commit 50491f9aae
119 changed files with 1175 additions and 167 deletions
+3 -3
View File
@@ -9,9 +9,9 @@
from pathlib import Path
from xmtdx import TdxClient
from xmtdx.models.finance import TdxBlock
from xmtdx.offline import detect_tdx_home, read_block_dat, read_customer_blocks
from easy_tdx import TdxClient
from easy_tdx.models.finance import TdxBlock
from easy_tdx.offline import detect_tdx_home, read_block_dat, read_customer_blocks
def _print_blocks(blocks: list[TdxBlock], title: str) -> None:
+2 -2
View File
@@ -7,8 +7,8 @@
需要本地已安装通达信并下载过日线数据。
"""
from xmtdx.offline import detect_tdx_home, read_daily_bars, find_daily_bar_file
from xmtdx import Market
from easy_tdx.offline import detect_tdx_home, read_daily_bars, find_daily_bar_file
from easy_tdx import Market
home = detect_tdx_home()
if home is None:
+3 -3
View File
@@ -18,9 +18,9 @@ vipdoc 目录结构:
import os
from pathlib import Path
from xmtdx.offline import detect_tdx_home, resolve_vipdoc
from xmtdx.offline import find_daily_bar_file, find_5min_bar_file, find_lc1_bar_file
from xmtdx import Market
from easy_tdx.offline import detect_tdx_home, resolve_vipdoc
from easy_tdx.offline import find_daily_bar_file, find_5min_bar_file, find_lc1_bar_file
from easy_tdx import Market
# --- 检测安装目录 ---
print("=" * 60)
+1 -1
View File
@@ -8,7 +8,7 @@
from pathlib import Path
from xmtdx.offline import detect_tdx_home, read_ex_daily_bars
from easy_tdx.offline import detect_tdx_home, read_ex_daily_bars
home = detect_tdx_home()
if home is None:
+1 -1
View File
@@ -8,7 +8,7 @@
from pathlib import Path
from xmtdx.offline import detect_tdx_home, read_gbbq
from easy_tdx.offline import detect_tdx_home, read_gbbq
home = detect_tdx_home()
if home is None:
+1 -1
View File
@@ -12,7 +12,7 @@
from pathlib import Path
from xmtdx.offline import detect_tdx_home, read_history_financial
from easy_tdx.offline import detect_tdx_home, read_history_financial
home = detect_tdx_home()
if home is None:
+2 -2
View File
@@ -8,7 +8,7 @@
需要本地已安装通达信并下载过分钟数据。
"""
from xmtdx.offline import (
from easy_tdx.offline import (
detect_tdx_home,
read_5min_bars,
read_lc_min_bars,
@@ -16,7 +16,7 @@ from xmtdx.offline import (
find_lc1_bar_file,
find_lc5_bar_file,
)
from xmtdx import Market
from easy_tdx import Market
home = detect_tdx_home()
if home is None: