Open Jack-Keene opened 11 months ago
This PR adds a compression option to the Emitter.
Pass in a compression function to the compression parameter when initialising the emitter, eg:
compression
def gzip_compression(data): return gzip.compress(bytes(data, "UTF-8")) e = Emitter("localhost", compression=gzip_compression)
coverage: 95.85% (-0.1%) from 95.946% when pulling 4220b0aaaf9fb6bd3b661cf6f85051b38d1e896d on test-compression-strategies into b29a57d91ebe88c4fa104f905c12040d3d7296c6 on master.
This PR adds a compression option to the Emitter.
Pass in a compression function to the
compression
parameter when initialising the emitter, eg: