Generation of the Code128b barcode
Project description
Code128b 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 code128bgen
Usage
from code128bgen 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.
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
code128bgen-0.2.0.tar.gz
(3.8 kB
view details)
File details
Details for the file code128bgen-0.2.0.tar.gz
.
File metadata
- Download URL: code128bgen-0.2.0.tar.gz
- Upload date:
- Size: 3.8 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 | cf65be3c2ab62e65877733526871a634ddafb3ba3211193221194ca5d84d961f |
|
MD5 | 48a7c510845c73b60e40928ecc758792 |
|
BLAKE2b-256 | 9752125c5963769f7235fe41430a76146e5730160343c31f472c560f54596d97 |