dql.util module

Utility methods

dql.util.dt_to_ts(value)[source]

If value is a datetime, convert to timestamp

dql.util.eval_expression(value)[source]

Evaluate a full time expression

dql.util.eval_function(value)[source]

Evaluate a timestamp function

dql.util.eval_interval(interval)[source]

Evaluate an interval expression

dql.util.getmaxyx()[source]

Get the terminal height and width

dql.util.plural(value, append='s')[source]

Helper function for pluralizing text

dql.util.resolve(val)[source]

Convert a pyparsing value to the python type

dql.util.unwrap(value)[source]

Unwrap a quoted string