Skip to main content

beautiful_barcode

Generate well-formatted, production-ready Barcodes.

By default, existing Python barcode libraries like python-barcode generate good barcodes, but any and all formatting of the text is left up to the user. beautiful_barcode generates a nicely formatted barcode with interleaved text out of the box:

Example barcode

Depending on your renderer (and true by default), text in the barcode is not an SVG <text> element, as such an elment may render differently on different machines depending on font availability.

This library is currently limited to UPC-A/EAN and EPS/SVG – that's all we (the original authors) needed. Patches welcome!

Installation

$ pip install beautiful_barcode

Usage

>>> from beautiful_barcode import GTIN
>>> GTIN('123456789012').write('output.svg')

Command line:

$ python -m beautiful_barcode 123456789012 -o output.svg

Quickstart

~$ git clone https://github.com/boxine/beautiful_barcode.git
~$ cd beautiful_barcode
~/beautiful_barcode$ make
help                 List all commands
install-poetry       install or update poetry
install              install via poetry
update               Update the dependencies as according to the pyproject.toml file
lint                 Run code formatters and linter
fix-code-style       Fix code formatting
tox-listenvs         List all tox test environments
tox                  Run pytest via tox with all environments
tox-py36             Run pytest via tox with *python v3.6*
tox-py37             Run pytest via tox with *python v3.7*
tox-py38             Run pytest via tox with *python v3.8*
tox-py39             Run pytest via tox with *python v3.9*
pytest               Run pytest
pytest-ci            Run pytest with CI settings
publish              Release new version to PyPi
makemessages         Make and compile locales message files

License

MIT

Release files for beautiful-barcode 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beautiful-barcode 1.1.3
File Size Uploaded
beautiful_barcode-1.1.3.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beautiful-barcode 1.1.3
File Interpreter ABI Platform
beautiful_barcode-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.7 kB

Release files / beautiful_barcode-1.1.3.tar.gz

Download URL beautiful_barcode-1.1.3.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
014401e27e0953d30111a606520e03ea057ad3d943554172515ba844dc2411f7
BLAKE2b-256 checksum
How to use checksums
a4c4c372c4be9587544a00cd64044f354106ffdb75f3b63e52e019b2a40a99e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.5 Linux/5.18.0-1-amd64

Release files / beautiful_barcode-1.1.3-py3-none-any.whl

Download URL beautiful_barcode-1.1.3-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f00bee8a2aebb11d2e66f6c3d1eafa757145060175093d7ab865a5e9bc581f12
BLAKE2b-256 checksum
How to use checksums
5a4bd0da0fb7c5f075162ee164d33aaec1a3d27234c07debebaba4a3fbfcec54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.5 Linux/5.18.0-1-amd64

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page