{
  "added_at": "2026-11-08",
  "category": "reconstruction-cases",
  "class": "hardware",
  "description_en": "tuya-ipc-p2p-sdk implements a Python client for Tuya IPC cameras’ native P2P video protocol. It logs in through the mobile gateway, exchanges MQTT signaling, connects through a TCP relay with KCP conversations, authenticates a media channel, and decrypts and reassembles MJPEG frames. The implementation draws on a byte-level protocol reference in the author’s companion Go client.",
  "description_zh": "tuya-ipc-p2p-sdk 以 Python 实现 Tuya IPC 摄像头原生 P2P 视频协议。它通过移动网关登录、交换 MQTT 信令、经 TCP 中继建立 KCP 会话、完成媒体通道认证，并解密和重组 MJPEG 帧。实现依据作者配套 Go 客户端中的字节级协议资料。",
  "entry_url": "https://awesomerea.org/resources/tuya-ipc-p2p-sdk-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/tuya-ipc-p2p-sdk-case/",
  "evidence_class": 2,
  "evidence_status": "observed",
  "evidence_url": "https://github.com/roquerodrigo/tuya-ipc-p2p-sdk/blob/58c5e6530bc9e34f1aad75b595feb6e381ab304a/README.md",
  "group": "cases",
  "id": "tuya-ipc-p2p-sdk-case",
  "json_url": "https://awesomerea.org/resources/tuya-ipc-p2p-sdk-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/tuya-ipc-p2p-sdk-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/tuya-ipc-p2p-sdk-case/index.md",
  "name": "tuya-ipc-p2p-sdk: Python camera client for Tuya’s P2P protocol",
  "name_zh": "tuya-ipc-p2p-sdk：Tuya P2P 协议的 Python 摄像头客户端",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "prerequisites",
    "limits",
    "limits",
    "license"
  ],
  "requirements": [
    "Python 3.12 or newer and credentials for the account owning the camera are required.",
    "Live validation covers MJPEG hardware and the us region; H264 cameras and other regions remain untested.",
    "The public API is alpha and may change across 0.x releases.",
    "MIT license."
  ],
  "requirements_zh": [
    "需要 Python 3.12 或更新版本，以及摄像头所属账户的凭据。",
    "实机验证覆盖 MJPEG 硬件和 us 区域；H264 摄像头及其他区域尚未测试。",
    "公开 API 仍处于 alpha 阶段，在 0.x 版本间可能变化。",
    "许可证为 MIT。"
  ],
  "scope": "unknown",
  "targets": [
    "protocol"
  ],
  "url": "https://github.com/roquerodrigo/tuya-ipc-p2p-sdk",
  "verification": "source-reviewed",
  "verified_at": "2026-11-06"
}
