hestia_earth.utils.tools.non_empty_value

hestia_earth.utils.tools.non_empty_value(value)[source]

Check if a value is empty.

Parameters

value – Either a string, a list, a number or None.

Returns

True if the value is not en empty string or an empty list.

Return type

bool