Hi, I just found that this module doesn't support Codabar (also known as NW-7). This is a quick hack to support Codabar. Mostly borrowed from the codes for ITF.
Added support for Codabar(NW-7) #115
Codecov Report
Merging #115 (
274b977) into main (4c0210f) will decrease coverage by2.44%.
The diff coverage is32.55%.
❗ Current head
274b977differs from pull request most recent headb627cb0. Consider uploading reports for the commitb627cb0to get more accurate results
Impacted file tree graph
@@ Coverage Diff @@
## main #115 +/- ##
==========================================
- Coverage 83.03% 80.58% -2.45%
==========================================
Files 15 17 +2
Lines 843 886 +43
==========================================
+ Hits 700 714 +14
- Misses 143 172 +29
| Impacted Files | Coverage Δ | |
|---|---|---|
| barcode/codabar.py | 27.50% <27.50%> (ø) |
|
| barcode/__init__.py | 95.91% <100.00%> (+0.08%) |
⬆️ |
| barcode/charsets/codabar.py | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 4c0210f...b627cb0. Read the comment docs.
Thanks! Code looks good. I need to generate a few barcodes and confirm with a reader that they work fine, I'll try to address that this week.
I've a few very minor changes nits here.
I'd suggest you add this entry to ~/.config/git/ignore, so that git will ignore it for all repositories that you work on locally, and you don't need to go around adding it everywhere.
This is already ignored by .gitignore, so this is redundant.
Thanks! Sorry for the delay merging.
inconsistencies in the API between various barcodes or writers
Automatically merge this PR once CI passes.
Further design discussions and PRs are welcome.
things that need to be documented better
waiting for a reply from the reporter
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?