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.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.1/5 16
DEVELOPED BY:
Alexandre Fiori
HOMEPAGE:
sourceforge.net
CATEGORY:
ROOT \ Text Editing&Processing \ Filters
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

requirements

#text filter #data encoding #Python extension #Ascii85 #data #encoding #Python

Add your review!

SUBMIT