| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
pass
'quiet_zone': 0,
'margin_top': 0,
'margin_bottom': 0,
for borderless codes
for more information, see https://pre-commit.ci
* verify or append checksum based on code length for PZN7 and PZN8 * explicit error messages for both classes respectively * different checksum calculation for PZN8
Codecov ReportBase: 80.63% // Head: 80.06% // Decreases project coverage by -0.56% ⚠️ Additional details and impacted files @@ Coverage Diff @@
## main #188 +/- ##
==========================================
- Coverage 80.63% 80.06% -0.57%
==========================================
Files 17 17
Lines 888 898 +10
==========================================
+ Hits 716 719 +3
- Misses 172 179 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Implement PZN8 code generation. Fixes #167.
usage
check code length
>>> PZN('12345678') barcode.errors.NumberOfDigitsError: PZN7 must have 6 digits (excluding checksum) or 7 digits (including checksum), not 8. >>> PZN8('123456789') barcode.errors.NumberOfDigitsError: PZN8 must have 7 digits (excluding checksum) or 8 digits (including checksum), not 9.auto-append checksum
>>> PZN('123456') <PZN7('PZN-1234562')> >>> PZN8('1234567') <PZN8('PZN-12345678')>verify checksum if supplied
>>> PZN('1234568') barcode.errors.BarcodeError: Checksum (last digit) is not valid for the supplied PZN7 code. >>> PZN('1234562') <PZN7('PZN-1234562')>resources (mostly german)
samples
PZN7: https://barcode.tec-it.com/de/Health_PZN7

PZN8: https://www.softmatic.com/de/barcode-code-pzn.html
