MCPcopy Index your code
hub / github.com/WhyNotHugo/python-barcode / build

Method build

barcode/codex.py:269–277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 return self._try_to_optimize(encoded)
268
269 def build(self) -> list[str]:
270 encoded = self._build()
271 encoded.append(self._calculate_checksum(encoded))
272 code = ""
273 for code_num in encoded:
274 code += code128.CODES[code_num]
275 code += code128.STOP
276 code += "11"
277 return [code]
278
279 def render(self, writer_options=None, text=None):
280 options = {"module_width": MIN_SIZE, "quiet_zone": MIN_QUIET_ZONE}

Callers

nothing calls this directly

Calls 2

_buildMethod · 0.95
_calculate_checksumMethod · 0.95

Tested by

no test coverage detected