aioworkers-mqtt
Features
Queue over mqtt
Storage over mqtt
Install
Use uv to add to your project (recommend):
uv add aioworkers-mqtt[paho]
or install with pip:
pip install aioworkers-mqtt[paho]
Usage
Add this to aioworkers config.yaml:
queue:
cls: aioworkers_mqtt.Queue
host: localhost
port: 1883
user: user
password: ***
qos: 1
format: json
topics:
- a
- b
storage:
cls: aioworkers_mqtt.Storage
host: localhost
port: 1883
user: user
password: ***
qos: 1
retain: true
format: json
prefix: room/device
You can work with queue like this:
await context.queue.put({"a": 1})
d = await context.queue.get()
and work with storage like this:
await context.storage.set("a", 1)
one = await context.storage.get("a")
Run:
aioworkers -c config.yaml -l debug
Development
Check code:
hatch run lint:all
Format code:
hatch run lint:fmt
Run tests:
hatch run pytest
Run tests with coverage:
hatch run cov
Metadata
Release files for aioworkers-mqtt 0.1.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 |
|---|---|---|---|---|
| aioworkers_mqtt-0.1.0.tar.gz | 9.8 kB | Without provenance | Details for aioworkers_mqtt-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioworkers_mqtt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aioworkers_mqtt-0.1.0-py3-none-any.whl |
Total release size: 18.6 kB
Release files / aioworkers_mqtt-0.1.0.tar.gz
| Download URL | aioworkers_mqtt-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31810cd8105ad7b9cc02b92baf69e85493aed94530df99f40aee3b3044970b93
|
|
BLAKE2b-256 checksum How to use checksums |
b2840311894c3a5937cf614ba16f45c377c9e8d5b2ebee67d1e4563cbd3276fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / aioworkers_mqtt-0.1.0-py3-none-any.whl
| Download URL | aioworkers_mqtt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f9a8ebaa3ea110480b94495e897e97e7b364ab37808a7fb1ddb626b8a0b4059
|
|
BLAKE2b-256 checksum How to use checksums |
a7e6c38191839c795e8e5ab8d167d12d623835693666cb24c2812d50bf2117fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for aioworkers-mqtt 0.1.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.