stringtools/_examples_/gzip_compress.py

9 linhas
220 B
Python

import sys
sys.path.append('../..')
import stringtools
import report
report.stdoutLoggingConfigure(log_name_lvl=[('root', 'DEBUG'), ])
print(stringtools.hexlify(stringtools.gzip_compress(15 * b'\x00' + 15 * b'\xff')))