• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jqueguiner / words2num2 / 29606311227
59%
main: 59%

Build:
Build:
LAST BUILD BRANCH: fix-spoken-year-forms
DEFAULT BRANCH: main
Ran 17 Jul 2026 07:08PM UTC
Jobs 6
Files 6
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jul 2026 07:06PM UTC coverage: 59.459% (-24.7%) from 84.12%
29606311227

push

github

jqueguiner
refactor: thin Python binder — delete the 120-file Python conversion layer

words2num2/ is now a thin binder over the Rust core, matching num2words2/. All
locale resolution, en-grammar parsing, reverse-table lookup and mode dispatch
live in words2num2-core; the Python package only binds _rust and surfaces the
exception/result types.

- words2num2-core: add top-level `words2num(text, lang, to)` (resolve_lang +
  CONVERTER_TYPES check + en-vs-reverse-table dispatch) so no dispatch remains
  in Python. Bump to 0.1.1.
- binder: expose `#[pyfunction] words2num`.
- words2num2/__init__.py: thin pass-throughs to _rust (words2num,
  words2num_sentence, auto_parse, auto_parse_sentence, parse_number_string,
  normalize, supported_langs) + Words2NumError / Quantity surface.
- Delete 122 files: all 118 lang_*.py, formats.py, utils.py, compat.py,
  converters/sentence.py. base.py keeps only Words2NumError; converters/auto.py
  keeps only Quantity + pluralize (the names _rust imports).
- tests: drop the 2 dispatch tests referencing the removed CONVERTER_CLASSES.

Verified: cargo test green, clippy clean, words2num2-core 0.1.1 published;
pytest 114 passed / 1 skipped (was 116/1 — the 2 removed are the deleted-layer
dispatch tests).

14 of 16 new or added lines in 2 files covered. (87.5%)

44 of 74 relevant lines covered (59.46%)

3.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
80.77
-1.73% words2num2/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 3.13 - 29606311227.1 17 Jul 2026 07:10PM UTC 6
59.46
GitHub Action Run
2 3.14 - 29606311227.2 17 Jul 2026 07:10PM UTC 6
58.9
GitHub Action Run
3 3.10 - 29606311227.3 17 Jul 2026 07:10PM UTC 6
59.46
GitHub Action Run
4 3.15 - 29606311227.4 17 Jul 2026 07:10PM UTC 6
58.9
GitHub Action Run
5 3.11 - 29606311227.5 17 Jul 2026 07:10PM UTC 6
59.46
GitHub Action Run
6 3.12 - 29606311227.6 17 Jul 2026 07:10PM UTC 6
59.46
GitHub Action Run
Source Files on build 29606311227
  • Tree
  • List 6
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d5db0020 on github
  • Prev Build on refactor/pure-rust-core (#29602910051)
  • Next Build on refactor/thin-python-binder (#29606390633)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc