Skip to navigation
How to gzip a string with ptyhon
10.03.15
import gzip content = b"Lots of content here" with gzip.open('/home/joe/file.txt.gz', 'wb') as f: f.write(content)
https://docs.python.org/3.4/library/gzip.html
Reply
Anonymous
Information Epoch 1732566959
Distrust all claims for one true way.
Home
Notebook
Contact us