spinn_utilities.configs package¶
Module contents¶
- class spinn_utilities.configs.CamelCaseConfigParser[source]¶
Bases:
RawConfigParser
Extends the Parser to allow for differences in case and underscores
- get_bool(section: str, option: str, special_nones: List[str] | None) bool | None [source]¶
Get the Boolean value of an option.
- get_str(section: str, option: str) str | None [source]¶
Get the string value of an option.
- Parameters:
section – What section to get the option from.
option – What option to read.
- Returns:
The option value
- get_str_list(section: str, option: str, token: str = ',') List[str] [source]¶
Get the string value of an option split into a list.
- Parameters:
section – What section to get the option from.
option – What option to read.
token – The token to split the string into a list
- Returns:
The list (possibly empty) of the option values
- optionxform(optionstr: str) str [source]¶
Transforms the name of an option to lower case and strips underscores, so matching is more user-friendly.
- exception spinn_utilities.configs.ConfigTemplateException[source]¶
Bases:
Exception
Throws when a problem is found with a configuration template.