WhyNotHugo/python-barcode

㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.

Python

658

231 commits

updated Oct 9, 2026

See the code

README

python-barcode
==============

.. image:: https://github.com/WhyNotHugo/python-barcode/actions/workflows/tests.yml/badge.svg
  :target: https://github.com/WhyNotHugo/python-barcode/actions
  :alt: CI status

.. image:: https://readthedocs.org/projects/python-barcode/badge/
  :target: https://python-barcode.rtfd.org/
  :alt: documentation

.. image:: https://img.shields.io/pypi/v/python-barcode.svg
  :target: https://pypi.python.org/pypi/python-barcode
  :alt: version on pypi

.. image:: https://img.shields.io/pypi/dm/python-barcode.svg
  :target: https://pypi.python.org/pypi/python-barcode
  :alt: downloads

.. image:: https://img.shields.io/pypi/l/python-barcode.svg
  :target: https://github.com/WhyNotHugo/python-barcode/blob/main/LICENCE
  :alt: licence

**python-barcode** provides a simple way to create barcodes in Python.

There are no external dependencies when generating SVG files.
Pillow is required for generating images (e.g.: PNGs).

Support Python 3.11 to 3.15.

.. image:: example-ean13.png
  :target: https://github.com/WhyNotHugo/python-barcode
  :alt: python-barcode

Documentation
-------------

Full documentation is published at http://python-barcode.rtfd.io/

You can build the documentation locally using ``make -C docs html``.

Licence
-------

python-barcode is licensed under the MIT licence. See LICENCE for details.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

barcode
image
pure-python
python
svg

WhyNotHugo/python-barcode

㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.

Python

658

231 commits

updated Oct 9, 2026

See the code

README

python-barcode
==============

.. image:: https://github.com/WhyNotHugo/python-barcode/actions/workflows/tests.yml/badge.svg
  :target: https://github.com/WhyNotHugo/python-barcode/actions
  :alt: CI status

.. image:: https://readthedocs.org/projects/python-barcode/badge/
  :target: https://python-barcode.rtfd.org/
  :alt: documentation

.. image:: https://img.shields.io/pypi/v/python-barcode.svg
  :target: https://pypi.python.org/pypi/python-barcode
  :alt: version on pypi

.. image:: https://img.shields.io/pypi/dm/python-barcode.svg
  :target: https://pypi.python.org/pypi/python-barcode
  :alt: downloads

.. image:: https://img.shields.io/pypi/l/python-barcode.svg
  :target: https://github.com/WhyNotHugo/python-barcode/blob/main/LICENCE
  :alt: licence

**python-barcode** provides a simple way to create barcodes in Python.

There are no external dependencies when generating SVG files.
Pillow is required for generating images (e.g.: PNGs).

Support Python 3.11 to 3.15.

.. image:: example-ean13.png
  :target: https://github.com/WhyNotHugo/python-barcode
  :alt: python-barcode

Documentation
-------------

Full documentation is published at http://python-barcode.rtfd.io/

You can build the documentation locally using ``make -C docs html``.

Licence
-------

python-barcode is licensed under the MIT licence. See LICENCE for details.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

barcode
image
pure-python
python
svg

Project health

Overall

4.0/10

Maintained

10/10

Code review

2/10
OpenSSF Scorecard

Latest release

0.16.1 · Aug 27, 2025

Releases this year

0

Significant stargazers

Seth Larson

946 followers · starred Dec 2020

Shunta Saito

440 followers · starred Feb 2024

Jair Henrique

248 followers · starred Apr 2024

Iuri de Silvio

177 followers · starred Jan 2023