[docs]defget(key:str)->int:"""Retrieve a configuration value given a key. Parameters ---------- key : str Desired configuration parameter key. Returns ------- int Value of the key. """globalconfigreturnconfig[key]
[docs]defset(key:str,value:int)->None:"""Set a configuration key's value. Parameters ---------- key : str Desired configuration parameter key to modify. value : int New value for the given key. """globalconfigifkeynotinconfig:raiseValueError(f"{key} not in config")config[key]=value
defthreshold_keys()->Iterator[str]:"""All available keys in the configuration dictionary."""globalconfigyield fromconfig.keys()