Skip to main content

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

worker-bunch-1.0.5.tar.gz (38.3 kB view hashes)

Uploaded Source

Built Distribution

worker_bunch-1.0.5-py3-none-any.whl (51.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page