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

jqueguiner / words2num2
59%
main: 59%

Build:
Build:
LAST BUILD BRANCH: fix-spoken-year-forms
DEFAULT BRANCH: main
Repo Added 01 May 2026 05:31PM UTC
Token tSMY2Za461O8IACVF4G3Xl5XVQptT18Us regen
Build 54 Last
Files 6
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

LAST BUILD ON BRANCH refactor/thin-python-binder
branch: refactor/thin-python-binder
CHANGE BRANCH
x
Reset
Sync Branches
  • refactor/thin-python-binder
  • feat/digits-mode-v2
  • feat/digits-sequence-mode
  • fix-scale-cardinals
  • fix-scale-plurals-connectors
  • fix-spoken-year-forms
  • fix/release-macos-cross
  • main
  • refactor/pure-rust-core
  • rust-port
  • v0.1.1
  • v0.2.0
  • v0.2.1
  • v0.2.2
  • v0.2.3
  • v0.3.0
  • v0.3.1

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

Pull #3

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).
Pull Request #3: refactor: thin Python binder (delete the 120-file Python layer)

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

Relevant lines Covered
Build:
Build:
74 RELEVANT LINES 44 COVERED LINES
3.54 HITS PER LINE
Source Files on refactor/thin-python-binder
  • Tree
  • List 6
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29606390633 refactor/thin-python-binder 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 words2... Pull #3 17 Jul 2026 07:09PM UTC jqueguiner github
59.46
29606311227 refactor/thin-python-binder 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 words2... push 17 Jul 2026 07:08PM UTC jqueguiner github
59.46
See All Builds (45)

Badge your Repo: words2num2

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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