tinyolap
tinyolap copied to clipboard
Rules Compiler
Rules need to be written in python. This requires 'real' Python coding and quite some boilerplate code. Sample:
@rule(cube="sales", trigger="delta %") def my_rule(c: Cell): return c["delta"] / c.plan["plan"]
Why not let users focus on the core rules itself and do the wrapping for them. This should not be too hard. sample:
["delta %"] = ["delta"] / ["plan"]
This would be a good bridge for users from TM/1 and alike. However, this will only work with simple one-line rules.