code128agen-代码128A条码的生成-Damian Dennis
发布:2020-12-23 13:38:09.715925
做者:Damian Dennis
做者邮箱:damiandennis@gmail.com
首页:https://github.com/damiandennis/code128agen
文档:None
下载连接
Code128a Generator
A simple barcode generator (full python solution)python
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.git
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.
Copy from pypi.org
查询时间:7.597ms
渲染时间:7.824ms
本文同步分享在 博客“zhenruyan”(other)。
若有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一块儿分享。github