Skip to content

0.3.0

Compare
Choose a tag to compare
@dhermes dhermes released this 13 Oct 17:22
  • Added MD5 checksum validation for Download that uses a stream (#32). This implementation is partial but we considered it worth releasing with limitations. Worth noting:
    • This is only implemented for the requests version of Download (i.e. not in the base Download class and not for the requests version of ChunkedDownload)
    • This is only implemented for MD5 checksums, not CRC32C checksums
    • This will not verify checksums for "composite objects" (i.e. those created via storage.objects.compose) because those objects do not have an MD5 checksum on the server (i.e. they only have a CRC32C checksum)
    • The MD5 checksum will not be validated if the Download was not created with a stream (this is because the implementation updates the checksum in chunks as the request body is consumed into the stream)
    • Progress can be followed on #22
  • Added an extra (#30) so that requests can be installed alongside google-resumable-media via
    pip install google-resumable-media[requests]
    

PyPI: https://pypi.org/project/google-resumable-media/0.3.0/
Docs: https://googlecloudplatform.github.io/google-resumable-media-python/0.3.0/