gen_py_module package

Module contents

Module
gen_py_module.py
Copyright
Copyright (C) 2017 Vladimir Roncevic <elektron.ronca@gmail.com> gen_py_module 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_py_module 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 GenPyModule with attribute(s) and method(s). Load a base info, create an CLI interface and run operation(s).
class gen_py_module.GenPyModule(verbose=False)[source]

Bases: ats_utilities.cli.cfg_cli.CfgCLI

Defined class GenPyModule with attribute(s) and method(s). Load a base info, create an CLI interface and run operation(s). It defines:

attributes:
GEN_VERBOSE - console text indicator for process-phase.
CONFIG - tool info file path.
LOG - tool log file path.
LOGO - logo for splash screen.
OPS - list of tool options.
logger - logger object API.
methods:
__init__ - initial constructor.
process - process and generate module setup.py.
__str__ - dunder method for GenPyModule.
CONFIG = '/conf/gen_py_module.cfg'
GEN_VERBOSE = 'GEN_PY_MODULE'
LOG = '/log/gen_py_module.log'
OPS = ['-g', '--gen', '-v', '--verbose', '--version']
VERBOSE = 'ATS_UTILITIES'
process(verbose=False)[source]

Process and run operation.

Parameters:verbose (<bool>) – enable/disable verbose option.
Returns:boolean status, True (success) | False.
Return type:<bool>
Exceptions:None