This is a demo for accessing data using MQTT and OpenSTS services
Project description
OpenSTS Python
This Python package provides a simple MQTT client using the paho-mqtt library, with built-in support for subscribing to multiple topics and handling messages. The package supports configuration via environment variables for enhanced security.
Configuration
This package uses environment variables for credentials. You can configure these by creating a .env file in the project directory:
Environment variables
MQTT_BROKER=your_broker_address
MQTT_PORT=1883
MQTT_USERNAME=your_username
MQTT_SECRET_KEY=your_secret_key
Topics in MQTT
In OpenSTS, MQTT topics follow a specific format to allow for proper identification of devices and applications.
This ensures that data published by a device under a particular application can be easily accessed by authorized users or services.
The topic format looks like this applications/{Application ID}/devices/{Device ID} e.g applications/23/devices/12.
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 opensts_py-0.1.0.tar.gz.
File metadata
- Download URL: opensts_py-0.1.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-45-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
324257bced64234313023ef4a07ea7cc1cefd557fb78ba63fc400cc02cdf9436
|
|
| MD5 |
f27d5f69e0e48918aa1f384bd61102ac
|
|
| BLAKE2b-256 |
9da3a6afe13205764b6132f4e130ad11ea0a3880b939cb6c323cf4419cfc5e80
|
File details
Details for the file opensts_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: opensts_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-45-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
591c02df293a334ff8abdf2e660d6ea6b89e05c82bba60c90ae3a6eec930c571
|
|
| MD5 |
2eec11b6262f9e3e5e01c493ccae42e6
|
|
| BLAKE2b-256 |
ccf3853b17fe910fd6096a397f562513a0fad86159ae77a72dd68ee245254a56
|