You can use gzip.GzipFile () alternate access through the file object using the file object provided by the GCS client:
import cloudstorage
import gzip
with cloudstorage.open('myfile.gz', 'r') as f:
content = gzip.GzipFile(fileobj=f).read()
source
share