dav_tools.messages.utils ======================== .. py:module:: dav_tools.messages.utils .. autoapi-nested-parse:: Utility functions for messages. Functions --------- .. autoapisummary:: dav_tools.messages.utils.read_input dav_tools.messages.utils.clear_line Module Contents --------------- .. py:function:: read_input(*format_options, secret = False, file=_sys.stderr) Ask input from a user using specified styling options. :param format_options: Text styling options. :param secret: Whether to hide the input. :param file: Stream to use for output. :returns: User input. .. py:function:: clear_line(file=_sys.stdout, flush = False) Clears the current line from any text of formatting. Not really suitable for files. :param file: Stream to clear. :param flush: Whether to flush the stream after printing.