Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 764 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 764 Bytes

python-hebrew-numbers

python library for conversion of hebrew numbers (Gematria)

Usage

installation

pip install python-hebrew-numbers

gematria_to_int

from hebrew_numbers import gematria_to_int
gematria_to_int(u'רח"צ')
# 298

int_to_gematria

from hebrew_numbers import int_to_gematria
int_to_gematria(298)
# u'רח״צ'
int_to_gematria(298, gershayim=False)
# u'רחצ'

Features

  • conversion from string of letters to an integer number
  • conversion of integer to string (using hebrew-special-numbers)

Contributing

See the contribution guide

Background