steenzout.barcode.codex module¶
Module: barcode.codex
| Provided barcodes: | |
|---|---|
| Code 39, Code 128, PZN | |
-
class
Code128(code, writer=None)[source]¶ Bases:
steenzout.barcode.base.BarcodeInitializes 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.
-
encoded¶
-
name= 'Code 128'¶
-
class
Code39(code, writer=None)[source]¶ Bases:
steenzout.barcode.base.BarcodeInitializes a new Code39 instance.
-
code¶ str
-
writer¶ writer.BaseWriterwriter 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.
-
name= 'Code 39'¶
-
-
class
PZN(code, writer=None)[source]¶ Bases:
steenzout.barcode.codex.Code39Initializes new German number for pharmaceutical products.
Parameters: - pzn (str) – code to render.
- writer (
writer.BaseWriter) – instance of writer class to render the bar code.
-
digits= 6¶
-
name= 'Pharmazentralnummer'¶