🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

auspostgen

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auspostgen

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

0.0.2
PyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts