code128cgen-0.0.2
توضیحات
Generation of the Code128c barcode
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | code128cgen-0.0.2 |
| نام | code128cgen |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Damian Dennis |
| ایمیل نویسنده | damiandennis@gmail.com |
| آدرس صفحه اصلی | https://github.com/damiandennis/code128cgen |
| آدرس اینترنتی | https://pypi.org/project/code128cgen/ |
| مجوز | - |
# Code128c Generator
A simple barcode generator (full python solution)
This library makes use of Pillow to generate the barcode image.
### Installation
```bash
python -m pip install code128cgen
```
### Usage
####
```python
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.
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl code128cgen-0.0.2:
pip install code128cgen-0.0.2.whl
نصب پکیج tar.gz code128cgen-0.0.2:
pip install code128cgen-0.0.2.tar.gz