Convert number to Hebrew or Hebrew to number
pip install gematriapy
to_hebrew
:
>>> import gematriapy
>>> gematriapy.to_hebrew(3)
"ג"
>>> gematriapy.to_hebrew(15)
"טו"
>>> gematriapy.to_hebrew(3, add_gershayim=True)
"ג׳"
>>> gematriapy.to_hebrew(766, add_gershayim=True)
"תשס״ו"
NOTE: Numbers greater than 999 are not supported yet.
to_number
:
>>> import gematriapy
>>> gematriapy.to_number("ג")
3
>>> gematriapy.to_number("ט״ו")
15
>>> gematriapy.to_number("אבא")
4