libtextworker 0.1.4
Cross-platform, free and open library for Python projects

◆ getkey()

typing.Any | None libtextworker.get_config.GetConfig.getkey (   this,
str  section,
str  option,
bool   needed = False,
bool   make = False,
bool   noraiseexp = False,
bool   raw = False 
)
Try to get the value of an option under the spectified section.

@param section, option: Target section->option
@param needed (boolean=False): The target option is needed - should use with make & noraiseexp.
@param make (boolean=False): Create the option if it is not found from the search
@param noraiseexp (boolean=False): Make getkey() raise exceptions or not (when neccessary)
@param raw (boolean=False): Don't use aliases for the value we get.

@return False if the option does not exist and needed parameter set to False.

Definition at line 186 of file get_config.py.