Skip to content

Instantly share code, notes, and snippets.

View colinmarc's full-sized avatar

Colin Marc colinmarc

View GitHub Profile
@colinmarc
colinmarc / c_zlib.py
Created March 21, 2012 19:53 — forked from mnot/c_zlib.py
c_zlib.py: zlib for Python using ctypes
#!/usr/bin/env python
"""
c_zlib - zlib for Python using ctypes.
This is a quick and nasty implementation of zlib using Python ctypes, in order to expose the ability
to set a compression dictionary (which isn't available in the zlib module).
"""
__license__ = """