muesli / beehive

A flexible event/agent & automation system with lots of bees 🐝
GNU Affero General Public License v3.0
6.27k stars 320 forks source link

Starlark #341

Open orsinium opened 3 years ago

orsinium commented 3 years ago

Add Starlark template filter syntax support. See the included documentation for more information

Motivation

  1. More powerful: everything that we can do with "template" filters can be done with "starlark" and much more. Actually, Starlark is turing-complete.
  2. More readable.
  3. Familiar: Python is one of the most popular languages.

Requirements

Blocked by #340 (contains that PR in the diff)

TODO

The input field for filters in beehive-admin should be changed to textarea. For now, I'm using YAML configuration file from #339 to write starlark filters.