gen_unix_domain_socket.pro.config package

Module contents

Module
__init__.py
Copyright
Copyright (C) 2018 Vladimir Roncevic <elektron.ronca@gmail.com> gen_unix_domain_socket 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_unix_domain_socket 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
Defined class ProConfig with attribute(s) and method(s). Defined project configuration container.
class gen_unix_domain_socket.pro.config.ProConfig(verbose=False)[source]

Defined class ProConfig with attribute(s) and method(s). Defined project configuration container. It defines:

attributes:
GEN_VERBOSE - console text indicator for process-phase.
TEMPLATES - templates key.
MODULES - modules key.
FORMAT - format for template file.
__verbose - enable/disable verbose option.
__config - configuration dictionary.
methods:
__init__ - initial constructor.
pro_name - property methods for set/get operations.
is_config_ok - checking is project configuration ok.
__str__ - dunder method for ProConfig.
FORMAT = 'template'
GEN_VERBOSE = 'GEN_UNIX_DOMAIN_SOCKET::PRO::CONFIG::PRO_CONFIG'
MODULES = 'modules'
TEMPLATES = 'templates'
config

Property method for getting project configuration.

Returns:formatted project configuration | None.
Return type:<dict> | <NoneType>
Exceptions:None
is_config_ok()[source]

Checking is project configuration ok.

Returns:boolean status, True (ok) | False.
Return type:<bool>
Exceptions:None