Evaluator & validator for mongo-like queries
- Free software: MIT license
- Documentation: https://mongo-filter-evaluator.readthedocs.io.
- Evaluate mongo-like queries in Python:
DataConditionEvaluator({
'value': 'value',
'int': {'$lte': 2}
}, {
'value': 'value',
'int': 1
}).evaluate()
- Validate typed mongo-like queries:
errors = ConditionValidator({
'value': 'value',
'int': {'$lte': 1}
}, {
'value': StringField,
'int': NumericField
}).validate()
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.