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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
auspostgen-0.0.2.tar.gz
(11.1 kB
view details)
File details
Details for the file auspostgen-0.0.2.tar.gz
.
File metadata
- Download URL: auspostgen-0.0.2.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad75f53861d9f450f8d5177a4bda957346a21212dd79f068cb2e1ee5319867c6 |
|
MD5 | 0d0b5fd2d001f156137a79cfb717bd28 |
|
BLAKE2b-256 | 995b667c802ca001e61d9e46ee21473b808ae90b8da2c9d0ecaa80dd31260fcd |