py_canoe.core.version.Version

The Version object represents the version of the CANoe application.

Source code in src\py_canoe\core\version.py
11
12
def __init__(self, app: 'Application'):
    self.com_object = app.com_object.Version

build property

Return the build number of the CANoe application.

full_name property

Return the full name of the CANoe application, including version and build information.

major property

Return the major version number of the CANoe application.

minor property

Return the minor version number of the CANoe application.

name property

Return the name of the CANoe application.

patch property

Return the patch version number of the CANoe application.

get_canoe_version_info()

Return the version information of the CANoe application.

Source code in src\py_canoe\core\version.py
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
def get_canoe_version_info(self) -> dict[str, str | int]:
    """Return the version information of the CANoe application."""
    try:
        version_info = {
            'full_name': self.full_name,
            'name': self.name,
            'major': self.major,
            'minor': self.minor,
            'build': self.build,
            'patch': self.patch
        }
        logger.info('CANoe Version Information:')
        for key, value in version_info.items():
            logger.info(f"    {key}: {value}")
        return version_info
    except Exception as e:
        logger.error(f"Error retrieving CANoe version information: {e}")
        return {}