Generation of the Code128c barcode
Project description
Code128c Generator
A simple barcode generator (full python solution)
This library makes use of Pillow to generate the barcode image.
Installation
python -m pip install code128cgen
Usage
from code128cgen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image
test_str_unicode = '12345678'
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
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
code128cgen-0.0.2.tar.gz
(3.4 kB
view details)
File details
Details for the file code128cgen-0.0.2.tar.gz
.
File metadata
- Download URL: code128cgen-0.0.2.tar.gz
- Upload date:
- Size: 3.4 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 | 673bd4cdf827ad119eddc8a5bdacb77d7abe905761980401c67ff5f61f180350 |
|
MD5 | 43885cc636c23b378f8b24c0c8f7fe6f |
|
BLAKE2b-256 | d6b0cf3f38618983f1a5587f03288f39a9e5d69f1e38e98675f763e107185473 |