vidua.bps module¶
Validate and apply BPS patches.
- vidua.bps.decode_number(bps_patch)¶
Return the next number in
bps_patch.
- vidua.bps.patch(source, bps_patch)¶
Return the patched source.
- vidua.bps.patch_info(bps_patch)¶
Return a dictionary of information about the patch.
>>> patch_info(bps_patch) {'target_size': 24, 'metadata': b'', 'target_checksum': 2648610592, 'source_checksum': 3418748557, 'source_size': 37}
- vidua.bps.validate_checksum(source, bps_patch)¶
Ensure that the source file matches the checksum in the patch.
If the checksum matches, return. Otherwise, raise a
ValueError.