Gzip in Python: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Python Code Examples") |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Python_Code_Examples#Code_Examples|Python Code Examples]] | * [[Python_Code_Examples#Code_Examples|Python Code Examples]] | ||
=Overview= | |||
<syntaxhighlight lang='py'> | |||
import gzip | |||
yaml = ... | |||
compressed = gzip.compress(bytes(yaml), 'utf-8') | |||
</syntaxhighlight> |
Revision as of 21:07, 2 March 2022
Internal
Overview
import gzip
yaml = ...
compressed = gzip.compress(bytes(yaml), 'utf-8')