Skip to main content

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


Download files

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

Source Distribution

opensts_py-0.1.1.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

opensts_py-0.1.1-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file opensts_py-0.1.1.tar.gz.

File metadata

  • Download URL: opensts_py-0.1.1.tar.gz
  • Upload date:
  • Size: 28.3 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

Hashes for opensts_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c9f61a84916d7d161a33f4811c158201f9edf2f8e30f7ebbc36149329743aeea
MD5 edf9d5aaddd3b6c954599f383bff859c
BLAKE2b-256 b37c6201af082e5fc484c0bd401a8bd0612e59fdc3346190b673fcb51327e6a2

See more details on using hashes here.

File details

Details for the file opensts_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: opensts_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.7 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

Hashes for opensts_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fda5ee6bb7774ba10d8a0cb57cf9c11ca456b6dd72a70a94d5d085e858f7a6f4
MD5 35843d407357fe00f5ce05ca3898e275
BLAKE2b-256 46028b4aea25f5053d661ec85203d0f78ce8a18b55f66c32162d65f88e1e4352

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