Skip to content

NoamNol/gematriapy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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