woom.util

woom.util#

Misc utilities

Attributes

COLORS

Available colors

Functions

check_dir(filepath[, dry, logger])

Make sure that the directory that contains file exists

colorize(text, mapping[, colorize])

Colorize text depending on mapping.

pages2ints(pages, n)

Convert a list of 1-based integers and zero-based slices to a pure list of one-based integers

params2env_vars([params, select])

Convert a dict of parameters to env vars start whose name starts with 'WOOM_'

Classes

WoomDate(date[, round])

WoomJSONEncoder(*[, skipkeys, ensure_ascii, ...])