My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Code license: New BSD License
Labels: python, barcode, graphics, postscript
Feeds:
People details
Project owners:
  whosaysni

Elaphe

Elaphe is a python binding for the Barcode Writer In Pure PostScript (http://www.terryburton.co.uk/barcodewriter/). It is a thin-wrapper which employs Python Imaging Library as PostScript rendering interface.

Requirements

Simple Usage

Caution! API will be changed in 0.6.

The following example:

  >>> from elaphe import barcode
  >>> barcode('qrcode',
  ...         'Hello Barcode Writer In Pure PostScript.',
  ...         options=dict(version=9, eclevel='M'), 
  ...         margin=10, data_mode='8bits'))   # Generates PIL.EpsImageFile instance
  <PIL.EpsImagePlugin.EpsImageFile instance at ...>
  >>> _.show()            # Show the image

should invoke default viewer which shows a QRcode symbol with 10px margin.

Remember, barcode() returns PIL image object.









Hosted by Google Code