pybarcoder base on python-barcode
Project description
BarCodeBuilder
Introduction
this is a bar tool which base on python-barcode and barcode.
Usage
1. install
pip install barcoder
2. usage
BarCoder().set_options({
'module_width': 0.2, # 默认值0.2,每个条码宽度,单位为毫米
'module_height': 8.0, # 默认值15.0,条码高度,单位为毫米
'quiet_zone': 3, # 默认值6.5,两端空白宽度,单位为毫米
'font_size': 12, # 默认值10,文本字体大小,单位为磅
'format': 'PNG', # 默认值'PNG',保存文件格式,默认为PNG,也可以设为JPEG、BMP等,只在使用ImageWriter时有效。
'dpi': 300, # 默认值300,图片分辨率,,只在使用ImageWriter时有效。
}).set_msg("S123456789", "左上角信息", "左下角信息", "右上角信息", "右下角信息").base64()
print("生成成功")
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
pybarcoder-0.7.17.tar.gz
(13.8 MB
view hashes)
Built Distribution
Close
Hashes for pybarcoder-0.7.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c776d85a013102d1ba877c5949d715e94fabd968e5adcf15fba854d7c710ae |
|
MD5 | fec9fe243871dc1f297ae962bb29d148 |
|
BLAKE2b-256 | 6140110827afa7c4bc715506b2039710ce10b7c54a8e3cccf5fe628fadbb7370 |