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.

Source Distribution

rulengine-0.0.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rulengine-0.0.6-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rulengine-0.0.6.tar.gz.

File metadata

  • Download URL: rulengine-0.0.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rulengine-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2a45c891e9538be7a8f7d0b2294fb810353a70f7fba045d908cbed1c08f38532
MD5 693c8ab925e41406f55b77771a8b8495
BLAKE2b-256 743240706e5375a1a596670afc5305174407935abc295db9768fe4c0b2a7d64d

See more details on using hashes here.

File details

Details for the file rulengine-0.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rulengine-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc6810035c07d7448ad4fb368335464253087b2a7ae395fb6d6d787860c3d878
MD5 47647a831483269776d5559b748a01a4
BLAKE2b-256 2f68f2bcb80e18f6df3314b53964102242dd9febb7f427a890cda201a50ccb6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page