gen_coap_service.pro.read_template module¶
- Module
read_template.py
- Copyright
Copyright (C) 2020 - 2024 Vladimir Roncevic <elektron.ronca@gmail.com> gen_coap_service is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. gen_coap_service is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
- Info
Defines class ReadTemplate with attribute(s) and method(s). Reads a template.
- class gen_coap_service.pro.read_template.ReadTemplate(verbose: bool = False)[source]¶
Bases:
FileCheck
Defines class ReadTemplate with attribute(s) and method(s). Reads a template.
It Definess:
- attributes:
- _GEN_VERBOSE - Console text indicator for process-phase.
- methods:
- __init__ - Initials ReadTemplate constructor.read - Reads a template.
- _GEN_VERBOSE: str = 'GEN_AUTOCONF::PRO::READ_TEMPLATE'¶
- read(template: str | None, verbose: bool = False) str | None [source]¶
Reads a template.
- Parameters:
template (<str> | <NoneType>) – Template file name | None
verbose (<bool>) – Enable/disable verbose option
- Returns:
Template content | None
- Return type:
<str> | <NoneType>
- Exceptions:
ATSTypeError | ATSValueError