huntsman.drp.utils.mongo

Functions

encode_mongo_document(value)

Encode object for a pymongo query.

encode_mongo_filter(document_filter)

Encode document filter into something that pymongo understands.

flatten_dict(d, **kwargs)

Flatten a nested dictionary, for example to dot notation.

mongo_logical_and(document_filters)

Combine document filters with logical and operation.

mongo_logical_or(document_filters)

Combine document filters with logical or operation.

unflatten_dict(d[, sep])

Unflatten a flattened dictionary.