genvid.toolbox.VersionBackup

class genvid.toolbox.VersionBackup

Bases: genvid.toolbox.backup.Backup

Logic to backup the SDK version.

VERSION_FILENAME = 'version.txt'
name

Overridden name() method.

backup(archive: zipfile.ZipFile, obj)

Overridden backup() method.

Warning

While there is no type constraint on the obj parameter, the object should have a GENVID_TOOLBOX_VERSION data member defined for this method to work properly.

restore(archive: zipfile.ZipFile, obj)

Overridden restore() method.

Note

The version is stored in the archive for documentation purpose but is not used to restore any state.

class backup.VersionBackup

Implementation of genvid.toolbox.VersionBackup