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.

Metadata

Release files for mongo-filter-evaluator 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongo-filter-evaluator 1.0.0
File Size Uploaded
mongo_filter_evaluator-1.0.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mongo-filter-evaluator 1.0.0
File Interpreter ABI Platform
mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 17.1 kB

Release files / mongo_filter_evaluator-1.0.0.tar.gz

Download URL mongo_filter_evaluator-1.0.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b46b36a1ca453933c5167af217f7bd68c4dcf71d4f31ad3ef70461284bf665c9
BLAKE2b-256 checksum
How to use checksums
17f0dfec57d1bbad2eb9b45889b13f9106260e8383b91efad6bae105975469f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl

Download URL mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl
Size 6.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5ab205f1bdc20b08f13a7edab4d0f7bd4ef1e37e593ca5e4057d1cc3f951ff4f
BLAKE2b-256 checksum
How to use checksums
916a742d3ddcecccd847a4c0605e7a13ef1441b85aa7a4c85e49e0b06808293c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page