@property
    def parsed_version(self):
        # Use getattr because __init__ isn't called by some ORMs.
        if getattr(self, '_parsed_version', None) is None:
            self._parsed_version = pkg_resources.parse_version(self.version)
        return self._parsed_version
Parse and cache the version using pkg_resources
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/models.py/Package.parsed_version