Skip to main content

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.

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

Details for the file mongo_filter_evaluator-1.0.0.tar.gz.

File metadata

File hashes

Hashes for mongo_filter_evaluator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b46b36a1ca453933c5167af217f7bd68c4dcf71d4f31ad3ef70461284bf665c9
MD5 da434b0f7da37571690f028f2875e1e4
BLAKE2b-256 17f0dfec57d1bbad2eb9b45889b13f9106260e8383b91efad6bae105975469f9

See more details on using hashes here.

File details

Details for the file mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ab205f1bdc20b08f13a7edab4d0f7bd4ef1e37e593ca5e4057d1cc3f951ff4f
MD5 eed8c502d6e4537729ab621600c356bb
BLAKE2b-256 916a742d3ddcecccd847a4c0605e7a13ef1441b85aa7a4c85e49e0b06808293c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

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