1.Project Title Rule Engine with AST
-
Description The Rule Engine with AST is a flexible and dynamic system for creating, combining, and evaluating rules based on user attributes such as age, department, and salary. Utilizing an Abstract Syntax Tree (AST), the project efficiently processes complex conditions and adapts to changing business requirement
-
Table of Contents
- Features
- Dynamic rule creation and modification
- Efficient evaluation of combined rules
- Error handling and attribute validation
- Persistent storage in a database
-
Installation bash git clone https://github.com/yourusername/rule-engine-with-ast.git cd rule-engine-with-ast pip install -r requirements.txt
-
Usage
Create a Rule
POST /api/rules { "rule": "age > 30 AND department = 'Sales'" }
Evaluate a Rule
POST /api/evaluate { "data": { "age": 35, "department": "Sales", "salary": 60000, "experience": 3 } }
- Testing
To run tests, use:
pytest tests/
- Contributing
If you would like to contribute, please fork the repository and submit a pull request.
- License
This project is licensed under the MIT License.
- Acknowledgments
Special thanks to [any libraries or resources] that assisted in the development of this project
- Contact Information
Rubeena Maddarki 9448236090 rubeenamaddarki85@gmail.com