plynx.utils.common

Module Contents

plynx.utils.common.SearchParameter[source]
plynx.utils.common.SEARCH_RGX[source]
plynx.utils.common.ObjectId[source]
plynx.utils.common.to_object_id(_id)[source]
class plynx.utils.common.JSONEncoder[source]

Bases: json.JSONEncoder

default(self, o)[source]
plynx.utils.common.zipdir(path, zf)[source]
plynx.utils.common.parse_search_string(search_string)[source]
plynx.utils.common.query_yes_no(question, default='yes')[source]

Ask a yes/no question via input() and return their answer.

Args:
question (str): String that is presented to the user. default (str): ‘yes’ or ‘no’ default value

The ‘answer’ return value is True for ‘yes’ or False for ‘no’.

plynx.utils.common.update_dict_recursively(dest, u)[source]