An open API service indexing awesome lists of open source software.

https://github.com/sanogotech/codebarre128python


https://github.com/sanogotech/codebarre128python

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# codebarre128python

The Best Python Packages for Generating Barcodes
treepoem is the most feature-rich Python package for rendering barcodes as images.

https://www.codeodis.com/content/24-polices-code-barre
Police Code Barre en code barre ou par code python.

## Install
```
pip install treepoem
```
Install ghostscript : https://www.ghostscript.com/download/gsdnld.html

PATH= C:\Program Files\gs\gs9.54.0\bin
## CLI

```
treepoem --type code128 --output code128.png PyBay2018

treepoem --type qrcode --output qr.gif https://jonasneubert.com/talks/pybay2018.html eclevel=Q

```

## Code Sample

```
import treepoem

img = treepoem.generate_barcode(
barcode_type='qrcode',
data='https://jonasneubert.com/talks/pybay2018.html',
options={"eclevel": "Q"}
)
img.convert('1').save('qr.gif')

```

## Code 128 example

```
treepoem --type code128 --output code128.png PyBay2018
```

![Code 128](https://github.com/sanogotech/codebarre128python/blob/main/code128.png "Code 128")