"""Version information of the tecplot Python module can be obtained as a `string
<str>` of the form "Major.Minor.Build"::

    tecplot.__version__

or as a `namedtuple <collections.namedtuple>` with attributes: "major",
"minor", "revision", "build" in that order::

    tecplot.version_info

The underlying |Tecplot 360 EX| installation has its own version which can be
obtained as a `string <str>`::

    tecplot.sdk_version

or as a `namedtuple <collections.namedtuple>`::

    tecplot.sdk_version_info
"""
from collections import namedtuple

from .tecutil import _tecinterprocess

Version = namedtuple('Version', ['major', 'minor', 'revision', 'build'])

version = '0.6.1'
build = '76987'
version_info = Version(*[int(x) for x in version.split('.')], build=build or 0)

sdk_version_info = _tecinterprocess.sdk_version_info
sdk_version = _tecinterprocess.sdk_version
