Skip to main content

Evaluator & validator for mongo-like queries

Project description

Mongo Filter Evaluator

https://img.shields.io/pypi/v/mongo_filter_evaluator.svg

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.

History

1.0.0 (2018-07-24)

  • First release on PyPI.

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

mongo_filter_evaluator-1.0.0.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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