data_baseutilscolorize_key

colorize_key

data_base.utils.colorize_key(key)

Colorizes a key based on its type.

The key is colorized green if it is a database, blue if it is a subdatabase, and black otherwise.

Parameters:

key (pathlib.Path) – the key

Returns:

the colorized key

Return type:

str

See also

data_base.utils.colorize()