Ascii85 Data Encodings for Python 0.1

Ascii85 Data Encodings for Python is an extension written in C, that provides Ascii85 data encodings, also known as Base85.
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.

USAGE

encoding:
encode(input, output, begin_tag=True, end_tag=True)
b85encode(buffer, begin_tag=True, end_tag=True)

decoding:
decode(input, output)
b85decode(buffer)

EXAMPLES

(from buffer)
>>> import ascii85
>>> v = ascii85.b85encode('sample test')
>>> ascii85.b85decode(v)
'sample test'
>>> v
'n'

(from file)
>>> ascii85.encode(file('/etc/motd'), sys.stdout)

last updated on:
May 8th, 2008, 12:50 GMT
price:
FREE!
developed by:
Alexandre Fiori
license type:
GPL (GNU General Public License) 
category:
ROOT \ Text Editing&Processing \ Filters

FREE!

In a hurry? Add it to your Download Basket!

user rating 16

UNRATED
3.1/5
 

0/5

Add your review!

SUBMIT