MCPcopy Create free account
hub / github.com/WhyNotHugo/python-barcode / __init__

Method __init__

barcode/codex.py:150–155  ·  view source on GitHub ↗
(self, code: str, writer=None)

Source from the content-addressed store, hash-verified

148 buffer: str
149
150 def __init__(self, code: str, writer=None) -> None:
151 self.code = code
152 self.writer = writer or self.default_writer()
153 self._charset = "C"
154 self._buffer = ""
155 check_code(self.code, self.name, code128.ALL)
156
157 def __str__(self) -> str:
158 return self.code

Callers

nothing calls this directly

Calls 1

check_codeFunction · 0.85

Tested by

no test coverage detected