python library for conversion of hebrew numbers (Gematria)
pip install python-hebrew-numbers
from hebrew_numbers import gematria_to_int
gematria_to_int(u'רח"צ')
# 298
from hebrew_numbers import int_to_gematria
int_to_gematria(298)
# u'רח״צ'
int_to_gematria(298, gershayim=False)
# u'רחצ'
- conversion from string of letters to an integer number
- conversion of integer to string (using hebrew-special-numbers)
See the contribution guide