Python pip

Python SDK

官方 Python SDK,附型別提示。支援同步與非同步模式。需要 Python 3.9+。

安裝
$ pip install tcglookup

主要功能

  • Python 3.9+ support
  • Built on httpx (async ready)
  • Typed exception hierarchy
  • Context manager support
  • Full type hints
使用範例
from tcglookup import TCGLookup

tcg = TCGLookup(api_key="your-api-key")

results = tcg.search("charizard")
print(results)

開始使用 TCG API 進行開發

取得免費 API 金鑰,幾分鐘內即可開始查詢卡牌價格。