Ascii85 Data Encodings for Python (pyascii85) is an extension written in C, that provides Ascii85 data encodings, also known as Base85.
It can encode and decode files or text buffers, and is useful for encoding data to be used within PostScript and PDF files, such as raw RGB images.
encode(input, output, begin_tag=True, end_tag=True)
b85encode(buffer, begin_tag=True, end_tag=True)
>>> import ascii85
>>> v = ascii85.b85encode('sample test')
>>> ascii85.encode(file('/etc/motd'), sys.stdout)