Provided barcodes

Code 39

class Code39(code, writer=None)[source]

Initializes a new Code39 instance.

code

str

writer

writer.BaseWriter

writer class.

Parameters:
  • code (str) – Code 39 string without * and checksum (added automatically if add_checksum is True).
  • writer (writer Instance) – instance of writer class to render the bar code.
  • add_checksum (bool) – add the checksum to code or not.

Code 128

New in version 0.8beta1.

class Code128(code, writer=None)[source]

Initializes a new Code128 instance. The checksum is added automatically when building the bars.

Parameters:
  • code (str) – code 128 string without checksum (added automatically).
  • writer (writer.BaseWriter) – instance of writer class to render the bar code.

PZN

class PZN(code, writer=None)[source]

Initializes new German number for pharmaceutical products.

Parameters:
  • pzn (str) – code to render.
  • writer (writer.BaseWriter) – instance of writer class to render the bar code.

EAN-13

EuropeanArticleNumber13

alias of EAN13

EAN-8

EuropeanArticleNumber8

alias of EAN8

JAN

JapanArticleNumber

alias of JAN

ISBN-13

InternationalStandardBookNumber13

alias of ISBN13

ISBN-10

InternationalStandardBookNumber10

alias of ISBN10

ISSN

InternationalStandardSerialNumber

alias of ISSN

UPC-A

UniversalProductCodeA

alias of UPCA