A Python barcode generator
Project description
This is a python package to create and read barcodes You can create file-like objects, text files and images from just a barcode number. Image generation is fast so it can be used to create images in bulk.
Supported Barcode Types
EAN13
EAN8
More types will soon be supported. PRs are welcome :)
Installing
Python 3.6.0 or higher is required
To install the library you can run the following command:
# Linux/MacOS
python3 -m pip install --upgrade pybarcodes
# Windows
py -3 -m pip install --upgrade pybarcodes
Quick Example
You can see what barcodes are supported
>>> import pybarcodes
>>> pybarcodes.SUPPORTED_BARCODES
["EAN13", "EAN8"]
And you can use this to view the barcode that was generated:
from pybarcodes import EAN13
CODE = "012345678905"
barcode = EAN13(CODE)
barcode.show()
This is pretty much all the code you need to generate a barcode.
Output Image:
Links
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
pybarcodes-0.4.7.tar.gz
(7.8 kB
view hashes)
Built Distribution
pybarcodes-0.4.7-py3-none-any.whl
(10.1 kB
view hashes)
Close
Hashes for pybarcodes-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa8f291d469f45dc148e28539a0523000a67e085318ab1aba4f9dcc1faf3ec4 |
|
MD5 | 59b186a43652edac627149d913e70483 |
|
BLAKE2b-256 | ac1a2479dae0f5339d227eb29949b68f8b5f0df4a1e0f3f1cb65bc22ea08dded |