class documentation
This class expands secrets referenced in ini files.
A secret is declared as @{<secrets-filename>}.
All secret errors found in the INI file are collected and can be retrieved by calling the I{get_expand_errors()} method.
The location of the secrets directory varies depending on a platform.
The following python code snippet will show you where it's located:
>>> import site >>> print(f'{site.USER_BASE}/secrets')
| Method | __init__ |
Initialize class attributes. |
| Method | expand |
Return the text with secrets expanded. |
| Method | get |
Return all expanding errors (missing secrets file). |
| Instance Variable | error |
Validation errors. |
| Method | _secret |
Return content from in the specified secrets file for matching objects. |