Skip to main content

Simple Rule Engine

Project description

# rulengine
##### Simple Rule Engine for Python
##### Rule engine gives an approach to you: "it would valid, if one of the rules can provide necessarry condition"
##### You can use in your any project, but remember; you need to make your own data context and generate rules on your side

# Installation
```bash
pip install rulengine
```

# Usage
```bash
In [1]: from rulengine.core import DataType, RuleOperator, ConditionOperator, Rule, Condition
In [2]: from rulengine import execute

In [3]: condition = Condition(value=1, operator=ConditionOperator.EQUAL, comparison_value=2, data_type=DataType.INTEGER)
In [4]: rule = Rule(operator=RuleOperator.AND, conditions=[condition])
In [5]: execute([rule])
Out[5]: False
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
rulengine-0.0.6-py2.py3-none-any.whl (4.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3
rulengine-0.0.6.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page