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 1773065924
When in doubt, use brute force.
Home
Notebook
Contact us