Gzip in Python

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

import gzip
yaml = ...
compressed = gzip.compress(bytes(yaml), 'utf-8')