Skip to content

zlebnik/mongo_filter_evaluator

Repository files navigation

Mongo Filter Evaluator

Evaluator & validator for mongo-like queries

Features

  • 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()

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published