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 密钥,几分钟内即可开始查询卡牌价格。