Task/job/rule engine, primarily intended for use in a smarthome environment.
Project description
Worker-Bunch
... is a tasks/jobs/rules engine, primarily intended for use in a smarthome environment.
Worker-Bunch provides a programming infrastructure for creating tasks/jobs/rules with proprietary functionality. These tasks/jobs/rules are called "workers" here. Each worker runs as a separate thread.
The worker base class is supposed to get overwritten. The most functionality goes into 2 functions with limited scope:
subscribe_notifications and _work. See
dummy_worker.py and
main.py.
The following infrastructure parts are already implemented:
- Starting and stopping the workers
- Logging
- Configuration and validation of configuration file (extendable for your job configuration; JSON schema based)
- Subscriptions to timer and cron events.
- Subscriptions to MQTT topics and publish MQTT messages. MQTT messages get debounced (configurable time span).
- Command line arguments
Other characteristics:
- Runs as Linux service.
- Additional prepacked is a Postgres and MQTT client. This is a quite opinionated decision due to the special lifecycle of the MQTT client (among others).
- Ready to use is a database worker, which is fully configurable (cron, sql statements, sql scripts, text replacements). See database_worker.
Usage
Have a look at Worker-Bunch-Sample
Maintainer & License
MIT © Raul Rosenlöcher
The code is available at GitHub.
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
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 worker-bunch-1.0.1.tar.gz.
File metadata
- Download URL: worker-bunch-1.0.1.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eefbf237cfa660736a5bfd0521df70397d3d46c891c9cbf66120246cf4d639c
|
|
| MD5 |
bfd7090fbce1a8983502499e84fb2692
|
|
| BLAKE2b-256 |
4a95b32aa9333d4de2f9711cc72324b43b5c2e3c2b16594d294dbe9494b7dd39
|
File details
Details for the file worker_bunch-1.0.1-py3-none-any.whl.
File metadata
- Download URL: worker_bunch-1.0.1-py3-none-any.whl
- Upload date:
- Size: 50.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff0779c301bade7f38871642e697762c2b350b528b0c3a0d373eda9ded5f5140
|
|
| MD5 |
1ae1aec922b8d440a506e19a1ea48a0c
|
|
| BLAKE2b-256 |
e214f63008faaa91759ba411b98706775889e7fea58ce96341e098b3830f56c6
|