Rules engine
Project description
Getting Started
Description
Simple rules engine inspired by Martin Fowler's blog post in 2009 and funnel-rules-engine.
Full Documentation can be found here
Requirements
python >= 3.6
How to install
pip install rules-engine
How to use
from rules_engine import Rule, RulesEngine, when, then
name = "fyndiq"
RulesEngine(Rule(when(name == "fyndiq"),then(True))).run(name)
>>> True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rules-engine-0.2.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for rules_engine-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73f2a4766ed9fc7fa5d143a67d7f2b1ef457e27537570b3b814a4f926897778 |
|
MD5 | f1307095f94626ad1e9b96d54ca3869a |
|
BLAKE2b-256 | 6a5dd41544e1f998c1b3dd825f707672f82c1821ba57add09abdce0dc72355f8 |