py2store.utils.mongoquery
Transform mongo-like selector dicts (filters) into boolean functions that implement the condition
Modified from mongoquery (https://github.com/kapouille/mongoquery)
mongoquery provides a straightforward API to match Python objects against
MongoDB Query Language queries.
-
class
py2store.utils.mongoquery.
Query
(definition)[source]
The Query class is used to match an object against a MongoDB-like query
-
match
(entry)[source]
Matches the entry object against the query specified on instanciation
-
exception
py2store.utils.mongoquery.
QueryError
[source]
Query error exception
-
py2store.utils.mongoquery.
is_non_string_sequence
(entry)[source]
Returns True if entry is a Python sequence iterable, and not a string