gzip — Support for gzip files — Python 3.12.4 documentation

PHOTO EMBED

Sun Jul 28 2024 08:21:17 GMT+0000 (Coordinated Universal Time)

Saved by @Shook87

import gzip
s_in = b"Lots of content here"
s_out = gzip.compress(s_in)
content_copyCOPY

https://docs.python.org/3/library/gzip.html