Return a single configuration option value. Arguments: key: The configuration option name. default: Default value to return if key is not set. Returns: Value of stored configuration option.
(self, key: str, default: Any = '')
| 58 | self.setConfigs(kwargs) |
| 59 | |
| 60 | def getConfig(self, key: str, default: Any = '') -> Any: |
| 61 | """ |
| 62 | Return a single configuration option value. |
| 63 | |
| 64 | Arguments: |
| 65 | key: The configuration option name. |
| 66 | default: Default value to return if key is not set. |
| 67 | |
| 68 | Returns: |
| 69 | Value of stored configuration option. |
| 70 | """ |
| 71 | if key in self.config: |
| 72 | return self.config[key][0] |
| 73 | else: |
| 74 | return default |
| 75 | |
| 76 | def getConfigs(self) -> dict[str, Any]: |
| 77 | """ |
no outgoing calls