RAISE Suite SDK
A Python SDK that enables local devices to communicate with a local RAISE Suite Agent over MQTT. It provides a clean, type-safe wrapper around paho-mqtt v2 for connecting, publishing, subscribing, and handling device messages.
Features
- Modern Packaging: Fully managed via Poetry with
pyproject.toml. - Clean Namespace: Main class exposed via
from raise_suite_sdk import MqttClient. - Robust Logging: Zero direct terminal spam. All communications use structured standard Python logging under
raise_suite_sdk. - Type Hints: Full PEP 484 type signatures for enhanced IDE autocomplete.
- Batch and File Publishing: Publish a list of payloads, or every line/row of a JSONL, CSV or Excel (XLSX) file, as separate messages.
Installation
Using Poetry:
poetry add raise-suite-sdk
Or pip:
pip install raise-suite-sdk
Excel (XLSX) support
Publishing Excel files (publish_xlsx()) needs the optional xlsx extra, which also installs openpyxl. If you want XLSX support, install the SDK with:
pip install "raise-suite-sdk[xlsx]"
Or with Poetry:
poetry add "raise-suite-sdk[xlsx]"
All other features, including JSONL and CSV publishing, work with the standard installation.
Quick Start
import logging
from raise_suite_sdk import MqttClient
# Configure logging in your parent application
logging.basicConfig(level=logging.INFO)
# Define callback
def on_message_received(topic: str, payload: dict, qos: int):
print(f"Received message from {topic}: {payload}")
# Initialize and start the client
client = MqttClient(
client_id="my-app-client",
user="my_username",
password="my_password",
broker="localhost",
port=1883,
on_message=on_message_received
)
client.start()
# Publish a dictionary payload (automatically serialized to JSON)
client.publish(topic="my/topic", payload={"status": "ok"}) # QoS 2
# Publish several payloads one by one; invalid samples are logged, skipped and returned as None
results = client.publish_batch(topic="my/topic", payloads=[{"seq": 1}, {"seq": 2}])
# Publish each line of a JSONL file (or text=...) as its own message; invalid lines are logged and skipped
results = client.publish_jsonl(topic="my/topic", path="samples.jsonl")
# Publish each CSV row as a typed JSON message; pass the dataset's JSON Schema for exact types
results = client.publish_csv(topic="my/topic", path="samples.csv", schema=schema)
# Publish each worksheet row as a JSON message (needs: pip install "raise-suite-sdk[xlsx]")
results = client.publish_xlsx(topic="my/topic", path="samples.xlsx")
# Stop the client when done
client.stop()
License
Licensed under the European Union Public Licence 1.2 (EUPL-1.2). See LICENSE for the full text.
Metadata
Release files for raise-suite-sdk 0.1.2
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 |
|---|---|---|---|---|
| raise_suite_sdk-0.1.2.tar.gz | 24.3 kB | With provenance | Details for raise_suite_sdk-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raise_suite_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for raise_suite_sdk-0.1.2-py3-none-any.whl |
Total release size: 50.9 kB
Release files / raise_suite_sdk-0.1.2.tar.gz
| Download URL | raise_suite_sdk-0.1.2.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52512d3313687efdf355e9b8a96819876667aa676fb9c3ec6faf82a5508eebf7
|
|
BLAKE2b-256 checksum How to use checksums |
3b114392c9d48581d28bdc9b1ed0ef58ccdf784d935d9a4f86137481a3f37412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / raise_suite_sdk-0.1.2-py3-none-any.whl
| Download URL | raise_suite_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecc46a624d5f8a96aab8c7745a9b4d9ea72d6a9c9c96fdcaa5050c194f8e9a9e
|
|
BLAKE2b-256 checksum How to use checksums |
c6247a411971109ce7e5de53c5400ff4bd9d36c3abc2a5f5960bf6d285eb0a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for raise-suite-sdk 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for raise_suite_sdk-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA 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.