bnnumerizer

raw JSON →
0.0.2 verified Fri May 01 auth: no python

A Python library to convert Bangla numbers (e.g., ১২৩৪) to their Bengali word representation (e.g., এক হাজার দুই শত চৌত্রিশ). This is a very early-stage library (v0.0.2) with minimal functionality and no dependencies. Use with caution in production.

pip install bnnumerizer
error ImportError: cannot import name 'convert' from 'bnnumerizer'
cause Library may have been installed incorrectly or contains no __init__.py with the symbol.
fix
Run 'pip install --upgrade bnnumerizer' and verify the installation with 'python -c "from bnnumerizer import convert; print(convert('১'))"'
error TypeError: argument of type 'int' is not iterable
cause Passing an integer instead of a string.
fix
Wrap input in str(), e.g. convert(str(123))
error KeyError: '১' (or similar Bengali digit key error)
cause Internal mapping may be incomplete or the digit is not recognized.
fix
Check that the input contains only Bengali numerals (০-৯). Use the latest version.
deprecated Library is in very early development (v0.0.2). API may change without notice.
fix Pin to specific version and test regularly.
gotcha Input must be a string of Bengali digits (e.g., '১২৩'), not integer or English digits.
fix Use str conversion if needed. For English digits, use another library like num2words or banglanumber.
breaking Output uses Bengali script (Unicode). Ensure your terminal/editor supports Bengali rendering.
fix Run in a Unicode-aware environment. Use print() with proper encoding.

Basic usage: call convert() with a Bangla numeral string.

from bnnumerizer import convert

# Convert a Bangla numeric string to words
result = convert('১২৩৪')
print(result)  # 'এক হাজার দুই শত চৌত্রিশ'