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
Metadata
Release files for hxtp-py 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hxtp_py-1.2.0.tar.gz | 54.4 kB | Without provenance | Details for hxtp_py-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hxtp_py-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for hxtp_py-1.2.0-py3-none-any.whl |
Total release size: 86.9 kB
Release files / hxtp_py-1.2.0.tar.gz
| Download URL | hxtp_py-1.2.0.tar.gz |
|---|---|
| Size | 54.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39cec79d13767be94bb47151bdb9a5509c925df673a0240c7ddedeed6689742d
|
|
BLAKE2b-256 checksum How to use checksums |
c1780b1b44566e3d13848fa861308e5e8b5baef6c8a2386a10c1407cae59a0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / hxtp_py-1.2.0-py3-none-any.whl
| Download URL | hxtp_py-1.2.0-py3-none-any.whl |
|---|---|
| Size | 32.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e86f904cc53b7c18086779a3cb82924666e95836b979af592da7d30b861ce4b4
|
|
BLAKE2b-256 checksum How to use checksums |
c7c80d2e0a746a52a171c14ac7ab32e4ba2f11825b4cd01ea2638e1253c5e90c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for hxtp-py 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.