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.6.tar.gz
(7.8 kB
view hashes)
Built Distribution
pybarcodes-0.4.6-py3-none-any.whl
(10.1 kB
view hashes)
Close
Hashes for pybarcodes-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4781906e5602ed9726b79ed1a69a59dd304bf0190c5a9ab086dc3330ac566da2 |
|
MD5 | d140f86b7bd86075b7edde85e9101cf6 |
|
BLAKE2b-256 | bdf861a9644e17603ce8483352ffce24e7dc636230f7f1d744ae08becb2625d4 |