Skip to main content

Tasks/jobs/rules 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

worker-bunch-0.8.4.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

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

worker_bunch-0.8.4-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file worker-bunch-0.8.4.tar.gz.

File metadata

  • Download URL: worker-bunch-0.8.4.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for worker-bunch-0.8.4.tar.gz
Algorithm Hash digest
SHA256 6abb524e64b8acc47f59d2da2397f0c36c94120e2bbea884418fa7757079c48c
MD5 432e237d43687fe6ce75d46123f64b46
BLAKE2b-256 537751e288e91e0c9e930bfeba7c95ebe577b7480ae251a137cbf4d4ac144ddd

See more details on using hashes here.

File details

Details for the file worker_bunch-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: worker_bunch-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for worker_bunch-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0af439a9b817c59904b8e448e82cbdd88a68f671b08601c26a37bb7c21ff4377
MD5 1f92ced5164b597809b6074640fbf924
BLAKE2b-256 1ce0db311ff027ed44cde009d1b16800b2df49fc411f24f618f86f32b9407872

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