steenzout.barcode.factory module¶
Factory module.
-
create_instance
(name, code, writer=None)[source]¶ Return bar code instance.
Parameters: - name (str) – bar code name.
- code (str) – code text.
- writer (
steenzout.barcode.writer.Interface
) – writer instance.
Raises: (
BarcodeNotFoundError
) – when the bar code encoding name is invalid or the encoding is not implemented.Returns: bar code instance.
Return type: (
steenzout.barcode.base.Base
)