gen_coap_service package

Subpackages

Module contents

Module

__init__.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 GenCoAPService with attribute(s) and method(s). Loads a base info, creates an CLI interface and runs operations.

class gen_coap_service.GenCoAPService(verbose: bool = False)[source]

Bases: CfgCLI

Defines class GenCoAPService with attribute(s) and method(s). Loads a base info, creates an CLI interface and runs operations.

It Definess:

attributes:
_GEN_VERBOSE - Console text indicator for process-phase.
_CONFIG - Tool info file path.
_LOG - Tool log file path.
_OPS - List of tool options.
_logger - Logger object API.
methods:
__init__ - Initials GenCoAPService constructor.
process - Processes and runs tool options.
_CONFIG: str = '/conf/gen_coap_service.cfg'
_GEN_VERBOSE: str = 'GEN_COAP_SERVICE'
_LOG: str = '/log/gen_coap_service.log'
_OPS: str = ['-g', '--gen', '-t', '--type', '-v', '--verbose', '--version']
process(verbose: bool = False) bool[source]

Processes and runs operations.

Parameters:

verbose (<bool>) – Enable/Disable verbose option

Returns:

True (success operation) | False

Return type:

<bool>

Exceptions:

None