Official HxTP/3.0 Python SDK — Protocol reference engine, AI integration layer, automation glue, provisioning toolkit.
Project description
HXTP Python SDK
HxTP/3.1Python Client SDK — A high-performance implementation of the Ed25519-signed IoT protocol. Features bit-perfect parity with Go, JS, and C++ implementations.
Installation
pip install hxtp-py
Quick Start
Async Client with MQTT Transport
import asyncio
from hxtp-py.client import HxTPClient
from hxtp-py.transport.mqtt import MQTTTransport
from decimal import Decimal
async def main():
# 1. Initialize the Protocol-Bound Client
client = HxTPClient(
url="https://api.hestialabs.in/api/v1",
tenant_id="your-tenant-uuid",
device_id="your-device-uuid",
client_id="unique-client-id",
private_key_hex="64-char-hex-private-key",
)
# 2. Use high-performance MQTT transport
mqtt = MQTTTransport(url="tcp://broker.hestialabs.in:1883")
client.set_transport(mqtt)
await mqtt.connect()
# 3. Send a signed command with numeric precision
response = await client.send_command(
device_id="light-1",
action="set_level",
params={"brightness": Decimal("85.50")} # Bit-perfect decimal parity
)
print(f" Sent: {response.message_id}")
async def run():
await main()
if __name__ == "__main__":
asyncio.run(run())
Protocol Alignment: HxTP/3.1
This SDK implements HxTP/3.1 with bit-perfect parityacross the execution stack.
| Component | Status | Details |
|---|---|---|
| Framing | Pipe-separated (` | |
| Normalization | Mandatory Unicode NFCnormalization for all fields. | |
| Numbers | Deterministic decimal strings via Decimal. |
|
| Compliance | Verified against the cross-language compliance suite. |
License
MIT License — Copyright (c) 2026 Hestia Labs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hxtp_py-1.2.0.tar.gz.
File metadata
- Download URL: hxtp_py-1.2.0.tar.gz
- Upload date:
- Size: 54.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39cec79d13767be94bb47151bdb9a5509c925df673a0240c7ddedeed6689742d
|
|
| MD5 |
d61591f7dbd1f261188b09eefda1aaf6
|
|
| BLAKE2b-256 |
c1780b1b44566e3d13848fa861308e5e8b5baef6c8a2386a10c1407cae59a0b7
|
File details
Details for the file hxtp_py-1.2.0-py3-none-any.whl.
File metadata
- Download URL: hxtp_py-1.2.0-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e86f904cc53b7c18086779a3cb82924666e95836b979af592da7d30b861ce4b4
|
|
| MD5 |
9534558dfe3cce38c568d92b70db9149
|
|
| BLAKE2b-256 |
c7c80d2e0a746a52a171c14ac7ab32e4ba2f11825b4cd01ea2638e1253c5e90c
|