Generates various barcodes using barcode.ps and PIL/Pillow
Project description
Elaphe is a python binding of Barcode Writer In Pure PostScript (http://www.terryburton.co.uk/barcodewriter/).
Requirements
Python 2.7. Does not work on Python 3.
GhostScript on your system
Simple Usage
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 ... at ...>
>>> _.show() # Show rendered bitmap
will invoke image viewer on your system, showing a QRcode symbol with 10px margin. barcode() returns PIL image object.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elaphe-0.6.0.tar.gz.
File metadata
- Download URL: elaphe-0.6.0.tar.gz
- Upload date:
- Size: 208.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71088ef9f1ed0f82cdfdf27d0a399802f377bfdd37a7a8fd27371c8ef39ea186
|
|
| MD5 |
efd5054667a8b0aece0e232d9bad9a6a
|
|
| BLAKE2b-256 |
9d82626fb3f9492d41eec22246e7a92b8d00971420546bb97e83b75bf371e09b
|
File details
Details for the file elaphe-0.6.0-py2.7.egg.
File metadata
- Download URL: elaphe-0.6.0-py2.7.egg
- Upload date:
- Size: 298.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bac6351a74a36038cba05c017c44d87a0bcee0e6e7c3320fdf2f34f7fbeddb6
|
|
| MD5 |
a67946f54ce008bb7dfc5b418b6b92d0
|
|
| BLAKE2b-256 |
a7b9914776ae9d61d5bf6625a36fdc7f7425b88d4cc3b107ccb4172fdef4d7b8
|