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.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for rules_engine-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc976d4fdf4a1dc5db4bcc30113a69c080ec92263473bfaffd337097c83621f6 |
|
MD5 | ad3337390b2f74cee36f2dd94a96a099 |
|
BLAKE2b-256 | 7587a068c20906130a378b4857004d5219ddafb5c749a27e9dedf6e07f4adbe4 |