Skip to main content

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

Project description

AusPostGen

A Python library for generating Australia Post Barcode versions 37, 59, and 62.

This is a fork off the auspostgen project by damiandennis maintained by Stampix. The goal of this fork was to make the package more modern and be usable in newer projects.

Features

  • Generate Australia Post barcodes in various formats
  • Support for versions 37, 59, and 62
  • High-performance C extension for barcode generation
  • Simple Python API

Installation

# Using Poetry
poetry add stampix-auspostgen

# Using pip
pip install stampix-auspostgen

Usage

from stampix.auspostgen.generator import write_image

# Generate a barcode image
write_image("output.png", "12345678901234567890", version=37)

Development

  1. Clone the repository
  2. Install dependencies:
    poetry install
    
  3. Run tests:
    poetry run pytest
    

Notes

  • There are some file comparison tests in the repo, but they don't give exactly the same results cross-platform so leaving this as is for now.

  • python-semantic-release doesn't update the version number inside the toml file & __init__.py for some reason. We will take a look later.

Project Structure

auspostgen/
├── stampix/
│   ├── __init__.py
│   └── auspostgen/
│       └── _c/
│           ├── __init__.py
│           ├── auspost.c
│           └── Makefile
├── tests/
│   └── __init__.py
├── docs/
├── pyproject.toml
└── README.md

License

MIT License - see LICENSE.txt for details

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

stampix_auspostgen-0.0.6.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stampix_auspostgen-0.0.6-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file stampix_auspostgen-0.0.6.tar.gz.

File metadata

  • Download URL: stampix_auspostgen-0.0.6.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for stampix_auspostgen-0.0.6.tar.gz
Algorithm Hash digest
SHA256 78777c251b185effff3e1498a3c3ca3816d05be613d70e12dc6a6e0c2b64896d
MD5 6f9de351a9377d544fe280825238e3b0
BLAKE2b-256 6597b2b79cae3576b99e3093343c658def09e6cb4d32623cb0c956d3dd90a4db

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampix_auspostgen-0.0.6.tar.gz:

Publisher: publish.yml on stampix/auspostgen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stampix_auspostgen-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for stampix_auspostgen-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8f5d589ac57b7e7779f1791d2260d56feafd65543a3f1d3406220548d0e8a569
MD5 460400c1c2cbadb13513056a1cd940bb
BLAKE2b-256 4b5db3871691496deba81d236c5540eae53b3a10ba8e70de5795bc99cdd48d64

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampix_auspostgen-0.0.6-py3-none-any.whl:

Publisher: publish.yml on stampix/auspostgen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page