Skip to main content

Code128a Generator

A simple barcode generator (full python solution)

This library makes use of Pillow to generate the barcode image, it also fully supports extended ASCII which I found most other libraries did not support except GNU barcode in raw mode.

Installation

python -m pip install code128agen

Usage

from code128agen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image

test_str_unicode = '12345678ÐEª2345FD'
bars = generate_bar_widths(test_str_unicode) # generates the bar widths for generating image.
pil_image = write_barcode_to_image(bars) # if you want to manipulation the image with PIL.
write_barcode_to_image_file(bars, 'test.png') # writes out file to specified file name.

Metadata

Release files for code128agen 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code128agen 0.0.1
File Size Uploaded
code128agen-0.0.1.tar.gz 3.7 kB Details

Release files / code128agen-0.0.1.tar.gz

Download URL code128agen-0.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2a32b9a8c6e83fa310ae2907c8ae7ed600660ba1dce104d0480e3b282da0cf7b
BLAKE2b-256 checksum
How to use checksums
b6f37bc5d65c38dc5535a93babc798629b8ed72b445658121241092409574be9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page