I have tried to find out if GCS Python client, and more specifically, blob.upload_from_file()
and blob.download_to_file()
check integrity of the uploaded or downloaded file automatically. If not, how can I check the CRC hash programmatically? Any pointers to documentation or source code would be appreciated.
Edit(06/29/22) Checksums in Python are now available for md5 and crc32c for uploads and downloads.
For example: Blob.download_as_bytes() has a new parameter named checksum with three values (None, 'md5', 'crc32c') https://googleapis.dev/python/storage/latest/blobs.html#google.cloud.storage.blob.Blob.download_as_bytes