https://github.com/NoamNol/gematriapy
Convert number to Hebrew or Hebrew to number
https://github.com/NoamNol/gematriapy
gematria hebrew python
Last synced: 7 months ago
JSON representation
Convert number to Hebrew or Hebrew to number
- Host: GitHub
- URL: https://github.com/NoamNol/gematriapy
- Owner: NoamNol
- License: mit
- Created: 2020-12-06T14:03:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T21:03:39.000Z (about 1 year ago)
- Last Synced: 2025-02-04T13:04:13.113Z (8 months ago)
- Topics: gematria, hebrew, python
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gematriapy
[](https://pypi.org/project/gematriapy/)
[](https://pypi.org/project/gematriapy/)Convert number to Hebrew or Hebrew to number
## Install
```bash
pip install gematriapy
```## Usage
**`to_hebrew`**:```python
>>> import gematriapy
>>> gematriapy.to_hebrew(3)
"ג"
``````python
>>> gematriapy.to_hebrew(15)
"טו"
``````python
>>> gematriapy.to_hebrew(3, add_gershayim=True)
"ג׳"
``````python
>>> gematriapy.to_hebrew(766, add_gershayim=True)
"תשס״ו"
```> **NOTE**: Numbers greater than 999 are not supported yet.
**`to_number`**:
```python
>>> import gematriapy
>>> gematriapy.to_number("ג")
3
``````python
>>> gematriapy.to_number("ט״ו")
15
``````python
>>> gematriapy.to_number("אבא")
4
```