class documentation
class AsyncExampleProgIni(AsyncIniFileParser): (source)
Constructor: AsyncExampleProgIni(name)
This class handles the ini file parameters for the AsyncExampleProgram.
| Method | __init__ |
The class constructor. |
| Async Method | validate |
Read ini file and check the existence of required parameters and sometimes validate content of complex types. |
| Async Method | validate |
Extract and validate ini file parameters. |
| Instance Variable | initial |
Need to handle initial validation correctly when post-validation is done. |
| Property | changed |
Return document_types change status. |
| Property | changed |
Return log_level change status. |
| Method | _verify |
Verify that all config section parameters exist. |
| Method | _verify |
Verify platform-specific section parameters. |
async def validate_ini_file(self, validation_model:
Callable, sections: Optional[ list] = None, read_ini: bool = False):
(source)
¶
Read ini file and check the existence of required parameters and sometimes validate content of complex types.
Specifically, handle verification of non-DEFAULT section(s).
The superclass handles verification of DEFAULT parameters and validation of all parameters (except special cases for complex types).
| Parameters | |
validationCallable | The validation model that pydantic should use. |
sections:Optional[ | List of used section names (except DEFAULT). |
readbool | Read ini file status. |