Skip to main content

hebrew-python

hebrew-python is a python library (with commandline utities) for programming python in Hebrew. (Yes, it is really possible!)

hebrew-python runs in Python 3.6+ (because ideas runs in Python 3.6+)

After downloading this library you can write a script like:

מתוך בנוי.אקראי יבא מספר_אקראי
משתנה_כלשהו = מספר_אקראי(1,9)
הראה(משתנה_כלשהו)

Name the file something.hepy and run it with hepy something.hepy.

You can also import other .hepy and .py files from the main file:

יבא something

Installing

To install with pip type in terminal:

pip install "hebrew-python[errors]"

and for non-errors support (without friendly-traceback):

pip install hebrew-python

This will create the commandline script:hepy

Usage

You can run hepy files with hepy <file>

You can start Hebrew Python console with just hepy

.hepy file syntax

.hepy file supports hebrew python syntax (syntax with keywords like יבא(import)
and functions like הראה (print)) in additional to normal python syntax

Use from normal python file/repl

You can use as library:

to import .hepy files into your .py file:

from hebrew_python import create_hook
create_hook(run_module=False, console=False) # without running main module or starting repl
import hepy_module # now you can import .hepy files

or to start repl from normal repl:

from hebrew_python import create_hook
create_hook(run_module=True, console=True) # *with* starting repl

jupyter/ipython

hebrew-python support jupyter and ipython intercative console by ipython extension. to use:

install jupyter-notebook by : pip install notebook
start jupyter-notebook by : jupyter notebook. then create new python3 by the new button.

on the first cell enter the text %load_ext hebrew_python and pross contoll+enter.

and then you can write hebrew-python in all notebook

Dependencies

hebrew-python depends on the python libraries:

friendly - for more friendly english traceback

  • ideas - most of this library is built on this project. It support easy creation of import hooks and it has a simple example for replacing keywords to French keywords

Contribute

On all errors, problems or suggestions please open a github issue

If you found this library useful, it would be great if you could buy me a coffee:

Buy Me A Coffee

Author

matan h

License

This project is licensed under the BSD-4 License.

Metadata

Release files for hebrew-python 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hebrew-python 0.1.7
File Size Uploaded
hebrew_python-0.1.7.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hebrew-python 0.1.7
File Interpreter ABI Platform
hebrew_python-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / hebrew_python-0.1.7.tar.gz

Download URL hebrew_python-0.1.7.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d219d5e7cb50e7c10922451d92b16c2b7157ce448918e8cfad935ddc0381d094
BLAKE2b-256 checksum
How to use checksums
65e45c99479377ed123a53576715966b8d356b8d0a1603be7452d89cd98afbed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.10 Linux/5.11.0-40-generic

Release files / hebrew_python-0.1.7-py3-none-any.whl

Download URL hebrew_python-0.1.7-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
085f4cbb77c1dc5bd538ff2e8c67cffa126caa02a61877ccfee66e7b6d432091
BLAKE2b-256 checksum
How to use checksums
82fc133f9a4d448eee0d73dbba5cc832d47a6b497acb545b2c543db14833be39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.10 Linux/5.11.0-40-generic

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page