Skip to content

Python SDK for SINT Protocol — mirrors TypeScript SDK#12

Open
ihti228 wants to merge 1 commit into
pshkv:masterfrom
ihti228:master
Open

Python SDK for SINT Protocol — mirrors TypeScript SDK#12
ihti228 wants to merge 1 commit into
pshkv:masterfrom
ihti228:master

Conversation

@ihti228
Copy link
Copy Markdown

@ihti228 ihti228 commented May 10, 2026

What

Adds Python SDK at sdks/python/ that mirrors the TypeScript SDK in sdks/typescript/.

Why

Many robotics environments use Python (ROS 2 Python bindings, MAVLink pymavlink). A native Python SDK removes the need for subprocess calls to the TypeScript client.

What was done

  • sint/client.pySintClient async class with all operations
  • sint/errors.pySintError(status, code, message)
  • sint/types.py — TypedDict definitions for all types
  • sint/tests/test_client.py15 tests, all passing
  • pyproject.toml — package config, httpx>=0.27, pytest-httpx, mypy strict

Acceptance Criteria

  • All TypeScript SDK operations have Python equivalents
  • Tests pass with pytest (15/15)
  • Type annotations throughout (mypy --strict ready)

Closes #4

Implements all TypeScript SDK operations as async Python client:
- intercept, intercept_batch, discovery, health
- pending_approvals, resolve_approval
- ledger, schemas, schema
- SintError with status/code/message
- UUIDv7 generation, ISO-8601 timestamps

Built with httpx (async), type annotations (mypy strict).
15 tests passing with pytest-asyncio + pytest-httpx.

Closes pshkv#4
@ihti228
Copy link
Copy Markdown
Author

ihti228 commented May 11, 2026

Hi @pshkv — gentle ping on this PR. The Python SDK is ready for review and mirrors the TypeScript SDK structure. Happy to address any feedback. Let me know if you need anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Good first issue: add Python SDK (mirrors TypeScript SDK)

1 participant