{"repo":"manfred-kaiser/business-rule-engine","free":true,"listed":false,"github":"https://github.com/manfred-kaiser/business-rule-engine","clone":"git clone https://github.com/manfred-kaiser/business-rule-engine.git","description":"Python DSL for setting up business intelligence rules","language":"Python","stars":73,"topics":["automation","business-rules","dsl","python","python-library","rules-engine"],"license":"MIT","category":"workflow-automation","readme_excerpt":"business-rule-engine ==================== As a software system grows in complexity and usage, it can become burdensome if every change to the logic/behavior of the system also requires you to write and deploy new code. The goal of this business rules engine is to provide a simple interface allowing anyone to capture new rules and logic defining the behavior of a system, and a way to then process those rules on the backend. You might, for example, find this is a useful way for analysts to define marketing logic around when certain customers or items are eligible for a discount, or to automate emails after users enter a certain state or go through a particular sequence of events. Usage 1. Define your variables Variables represent values in your system, usually the value of some particular object. You create rules by setting threshold conditions such that when a variable is computed that triggers the condition, some action is taken. 2. Define custom functions 3. Write the rules Rules use standard Python expression syntax. The when block supports multi-line expressions with and / or — lines are joined and evaluated as a single Python expression. Each then line is an action executed in order. 4. Create the parser and execute Multiple conditions and multiple actions The when block uses standard Python boolean syntax. Multiple lines are joined into a single expression, so and / or work exactly as in Python. Each line in the then block is a separate action executed in order. Custom f","default_branch":null,"files":null,"tree":[],"storefront":"/r/manfred-kaiser","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/manfred-kaiser/business-rule-engine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}