Simple Rule Engine
Project description
# rulengine
##### Simple Rule Engine for Python
# Installation
```bash
pip install rulengine
```
# Usage
```bash
In [1]: from rulengine.core import DataStructure, Operator, Rule
In [2]: from rulengine import execute
In [3]: rule = Rule(value=1, operator=Operator.EQUAL, comparison_value=1, data_structure=DataStructure.INTEGER)
In [4]: execute([rule])
Out[5]: True
```
##### Simple Rule Engine for Python
# Installation
```bash
pip install rulengine
```
# Usage
```bash
In [1]: from rulengine.core import DataStructure, Operator, Rule
In [2]: from rulengine import execute
In [3]: rule = Rule(value=1, operator=Operator.EQUAL, comparison_value=1, data_structure=DataStructure.INTEGER)
In [4]: execute([rule])
Out[5]: True
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rulengine-0.0.4.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for rulengine-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85d9299029aa2fa517bb4458edb4508227d156d66b5f688878ec6c00e762e22 |
|
MD5 | 743edfb7cc0c83b38a51f0b6176a4f54 |
|
BLAKE2b-256 | 104efe0932d35e130040b9e167b21c11d35285d90fd4c0930e9c806351f9dd6b |