Utility Mill

embed_a_file_right_in_python_code


Output


Instructions / Discussion

Enter a file and get its encoded information as output. Place that output in your source code like this:

import base64,zlib

from cStringIO import StringIO

my_file=StringIO(zlib.decompress(base64.decodestring("""eJwBzBUz6...""")))

where eJwBzBUz6... is whatever output you get from this utility.

The keyboard heatmap utility has an example of using this method.

Utility Mill is another wonderful Blended Technologies project.

copyright, owned and operated by Blended Technologies LLC.

Powered by Python and the ineffable Web.py