Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 913 Bytes

README.md

File metadata and controls

56 lines (43 loc) · 913 Bytes

gematriapy

PyPI Latest Release PyPI Downloads

Convert number to Hebrew or Hebrew to number

Install

pip install gematriapy

Usage

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