ats_utilities.info 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 ATSInfo with attribute(s) and method(s). Created API for ATS informations in one container object.
class ats_utilities.info.ATSInfo(info, verbose=False)[source]

Bases: ats_utilities.info.ats_name.ATSName, ats_utilities.info.ats_version.ATSVersion, ats_utilities.info.ats_licence.ATSLicence, ats_utilities.info.ats_build_date.ATSBuildDate, ats_utilities.info.ats_info_ok.ATSInfoOk

Defined class ATSInfo with attribute(s) and method(s). Created API for ATS informations in one container object. It defines:

attributes:
__metaclass__ - setting cooperative metaclasses.
ATS_NAME - ATS name key.
ATS_VERSION - ATS version key.
ATS_LICENCE - ATS licence key.
ATS_BUILD_DATE - ATS build date key.
ATS_BASE_INFO - ATS base information dict.
__verbose - enable/disable verbose option.
methods:
__init__ - initial constructor.
show_base_info - show ATS informations.
is_correct - check information structure.
__str__ - str dunder method for ATSInfo.
ATS_BASE_INFO = {1: 'ats_name', 2: 'ats_version', 3: 'ats_licence', 4: 'ats_build_date'}
ATS_BUILD_DATE = 'ats_build_date'
ATS_LICENCE = 'ats_licence'
ATS_NAME = 'ats_name'
ATS_VERSION = 'ats_version'
VERBOSE = 'ats_utilities::info'
is_correct(informations, verbose=False)[source]

Check information structure.

Parameters:
  • informations (<dict>) – ATS base informations.
  • verbose (<bool>) – enable/disable verbose option.
Exceptions:

ATSTypeError | ATSBadCallError

show_base_info()[source]

Show ATS informations.

Exceptions:None