There are quite a few scripts that read the version apart from the one used by "run show version", in particular, the scripts for LLDP and SNMP. They should not need to duplicate this functionality.
I suggest:
vyos.util.get_version_data([file=<version file>]) vyos.util.get_version([file=<version file>])