Skip to main content

Official HxTP/3.0 Python SDK — Protocol reference engine, AI integration layer, automation glue, provisioning toolkit.

Project description

HXTP Python SDK

Python 3.10+ License: MIT Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hxtp_py-1.2.0.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hxtp_py-1.2.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

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

Hashes for hxtp_py-1.2.0.tar.gz
Algorithm Hash digest
SHA256 39cec79d13767be94bb47151bdb9a5509c925df673a0240c7ddedeed6689742d
MD5 d61591f7dbd1f261188b09eefda1aaf6
BLAKE2b-256 c1780b1b44566e3d13848fa861308e5e8b5baef6c8a2386a10c1407cae59a0b7

See more details on using hashes here.

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

Hashes for hxtp_py-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e86f904cc53b7c18086779a3cb82924666e95836b979af592da7d30b861ce4b4
MD5 9534558dfe3cce38c568d92b70db9149
BLAKE2b-256 c7c80d2e0a746a52a171c14ac7ab32e4ba2f11825b4cd01ea2638e1253c5e90c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page