expyfun.get_config#

expyfun.get_config(key=None, default=None, raise_error=False)[source]#

Read expyfun preference from env, then expyfun config

Parameters:
keystr

The preference key to look for. The os environment is searched first, then the expyfun config file is parsed.

defaultstr | None

Value to return if the key is not found.

raise_errorbool

If True, raise an error if the key is not found (instead of returning default).

Returns:
valuestr | None

The preference key value.