Skip to main content

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 pybarcoder
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("S123456789123456", "左上角信息", "左下角信息", "右上角信息", "右下角信息").save()
print("生成成功")

3. 条码示例

BarcoderPic

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

pybarcoder-0.9.1.tar.gz (13.8 MB view details)

Uploaded Source

Built Distribution

pybarcoder-0.9.1-py3-none-any.whl (13.8 MB view details)

Uploaded Python 3

File details

Details for the file pybarcoder-0.9.1.tar.gz.

File metadata

  • Download URL: pybarcoder-0.9.1.tar.gz
  • Upload date:
  • Size: 13.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.3

File hashes

Hashes for pybarcoder-0.9.1.tar.gz
Algorithm Hash digest
SHA256 933adfc37485f6e6d28ccba57d774b3fd768d0c00393b2a398540a85a466f4e1
MD5 1e14f2159ee577fdd588f8aad6ff26d9
BLAKE2b-256 920221e442d637ddc50fc07c00ba7cc128cf4263448486a64c4f99d33e5d1863

See more details on using hashes here.

File details

Details for the file pybarcoder-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: pybarcoder-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.3

File hashes

Hashes for pybarcoder-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b16058f07fd80bdd2dbb8bab0c4eb22de1bf1b5bcddb4b4e8120ca44eddcd6
MD5 67b4e64bb5bce88013a08c6601b677e8
BLAKE2b-256 9350e2595d3f1e0c70fd46699267e13e3c3db46fc25ede5f2a08824fe3fabddb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page