Evaluator & validator for mongo-like queries
Project description
Mongo Filter Evaluator
Evaluator & validator for mongo-like queries
Free software: MIT license
Documentation: https://mongo-filter-evaluator.readthedocs.io.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mongo_filter_evaluator-1.0.0.tar.gz
.
File metadata
- Download URL: mongo_filter_evaluator-1.0.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46b36a1ca453933c5167af217f7bd68c4dcf71d4f31ad3ef70461284bf665c9 |
|
MD5 | da434b0f7da37571690f028f2875e1e4 |
|
BLAKE2b-256 | 17f0dfec57d1bbad2eb9b45889b13f9106260e8383b91efad6bae105975469f9 |
File details
Details for the file mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mongo_filter_evaluator-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab205f1bdc20b08f13a7edab4d0f7bd4ef1e37e593ca5e4057d1cc3f951ff4f |
|
MD5 | eed8c502d6e4537729ab621600c356bb |
|
BLAKE2b-256 | 916a742d3ddcecccd847a4c0605e7a13ef1441b85aa7a4c85e49e0b06808293c |