ats_utilities.config_io package

Module contents

Module
__init__.py
Copyright
Copyright (C) 2017 Vladimir Roncevic <elektron.ronca@gmail.com> ats_utilities 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. ats_utilities 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 ConfigFile with attribute(s) and method(s). Created API for information/configuration context manager.
class ats_utilities.config_io.ConfigFile(file_path, file_mode, file_format, verbose=False)[source]

Bases: ats_utilities.config_io.base_check.FileChecking

Defined class ConfigFile with attribute(s) and method(s). Created API for information/configuration context manager. It defines:

attributes:
__verbose - enable/disable verbose option.
__file_path - configuration file name.
__file_mode - file mode.
__file_format - file format.
__file - file object.
methods:
__init__ - initial constructor.
__enter__ - open configuration file in mode.
__exit__ - close configuration file.
__str__ - str dunder method for ConfigFile.
VERBOSE = 'ats_utilities::config_io'