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.8.tar.gz
(7.9 kB
view hashes)
Built Distribution
pybarcodes-0.4.8-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for pybarcodes-0.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd8073441627d7ef34085fdbd571ac7140970b34567cfeec6a6eb7f221617aa |
|
MD5 | 766510bd29f78784bd540507afa19ee0 |
|
BLAKE2b-256 | e32052285d3ee19509682fc1daf3a47ca66513a280dbacbdf8b27e3381edc113 |