genvid.toolbox.Manifest
- class genvid.toolbox.Manifest(stats: Optional[Iterable[FileStats]] = None)
Bases:
dict
- class Op(value)
Bases:
Enum
An
enum.Enum
of the operations able to represent the difference between two manifests.See also
- Added = '+'
- Updated = '*'
- Deleted = '-'
- Identical = '='
- difference(manifest: ManifestType, *, allstats: bool = False) Iterable[tuple[genvid.toolbox.sync.Manifest.Op, genvid.toolbox.sync.FileStats]]
Compute the difference between two manifests. The difference is returned as a list of files and the associated operation to apply.
- Parameters:
manifest – The manifest to compare to.
allstats – If all changes need to be returns. By default, only operations that change the files are returns.
- class sync.Manifest
Implementation of
genvid.toolbox.Manifest
- class sync.ManifestType