Skip to main content

Generation of the Australia Post Barcode versions 37, 52, 67

Project description

Australia Post Barcode Generator

A simple barcode generator currently only supporting x64 linux written for python.

This library makes use of the provided C library provided by Australia Post to generate the barcode value and Pillow is used to generate the barcode image. This is quite fast approx 10000 unique barcode images generated in 30 seconds.

Installation

python -m pip install auspostgen

Usage

from auspostgen import build_barcode, write_barcode_to_image_file

barcode = build_barcode('11', '59564391')
write_barcode_to_image_file(barcode, './my-barcode37.png')
barcode = build_barcode('59', '59564391', '11ABA')
write_barcode_to_image_file(barcode, './my-barcode52.png')
barcode = build_barcode('62', '59564391', '11ABA11ABA')
write_barcode_to_image_file(barcode, './my-barcode67.png', dpi=(600, 600))

Barcode37

Barcode52

Barcode67

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for auspostgen, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size auspostgen-0.0.2.tar.gz (11.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page