kanjize
Easy converter between Kanji-Number and Integer
What it is and what it does
Kanjize is a bidirectional converter between Japanese kanji number notation and standard integers. It handles both standard and formal (daiji) kanji representations, mixed notation (combining Arabic digits with kanji), and flat digit-by-digit conversion. The package supports numbers up to 10^72 - 1 and includes a Number class for arithmetic operations on kanji-represented values.
The library is useful for applications that need to parse or generate Japanese numerals—common in Japanese text processing, document generation, and localization. It has no external runtime dependencies and requires Python 3.8 or later. The package is stable and maintained, though updates are infrequent.
Use it for:
- Parse Japanese text containing kanji numerals and convert them to integers for calculation or storage
- Generate Japanese kanji number representations for documents, invoices, or formal Japanese text output
- Support mixed notation (e.g., '223兆4千億') for applications that display numbers in hybrid Arabic-kanji format
- Perform arithmetic on kanji-represented numbers using the Number class without converting to integers first
- Localize numeric output in Japanese applications by converting standard integers to formal or casual kanji notation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts between Japanese kanji number representations and integers, supporting numbers up to 10^72 - 1, with configurable output styles and daiji (formal kanji) variants.
Yes, if you need to work with Japanese kanji numerals. The package is stable, has no dependencies, installs easily, and covers a wide range of conversion scenarios. The infrequent updates are not a concern for a mature, single-purpose library. No known security vulnerabilities.
Install
kanjize on PyPI
pip
pip install kanjizeuv
uv add kanjizepoetry
poetry add kanjizeInstalling kanjize
Before you install
Low friction install with no runtime dependencies. Marked as aging (426 days since last release), but the repository remains active with recent commits and the package is marked Production/Stable.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install kanjize
from kanjize import number2kanji, kanji2number
print(number2kanji(58076099))
# 五千八百七万六千九十九
print(kanji2number("五千八百七万六千九十九"))
# 58076099
Verify before relying
- Whether the package handles edge cases consistently for numbers near the 10^72 - 1 limit
- Performance characteristics when converting very large numbers or bulk operations
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 426 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 155,356/month — #10,821 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: kanjize-1.6.1-py3-none-any.whl
Keywords: converter, integer, japanese, kanji, number
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pykakasiTransliterates Japanese text (hiragana,…
copyleft · top 5,000 on PyPI
text2digitsConverts written-out number words in text to…
permissive · top 15,000 on PyPI
jaconvjaconv converts between Japanese character…
permissive · top 5,000 on PyPI
mojimojiConverts Japanese text between hankaku…
permissive · top 15,000 on PyPI
str2boolConverts string representations like 'yes',…
permissive · top 15,000 on PyPI
habachenHabachen converts between full-width and…
permissive · top 15,000 on PyPI
cutletCutlet converts Japanese text to romaji (Latin…
permissive · top 15,000 on PyPI
OpenCCConverts text between Traditional Chinese,…
permissive · top 15,000 on PyPI
cn2anConverts between Chinese numerals and Arabic…
permissive · top 15,000 on PyPI
romanConverts between Arabic integers and Roman…
unclear · top 5,000 on PyPI