Meet Bython, a Python with curly braces and no indentation errors

🐍 A Python for Python haters! 😃


Meet Bython, a Python with curly braces and no indentation errors


If you are one of those who like Python, but find the indentation errors and lack of C-style with the use of curly braces ({ }) annoying, then Bython is for you.

In other words, Bython is a Brackets Python, a Python with curly braces!


Installation

To install you can use Pip: pip3 install bython. If your system issued failure, then you need to create a venv:

mkdir -p ~/.local/bin
python -m venv ~/.local/bin/venv
. ~/.local/bin/venv/bin/activate
pip install bython

After that, just test it with a .py file, for example: main.py:

def cout(str){
print(str)
}
cout("Hello, Bython")

And run it via command line:

bython test-bython.py

Or if it’s not in the venv, use the full path:

~/.local/bin/venv/bin/bython test-bython.py

Strange and cool at the same time, right?! 😃

For more information, visit: https://github.com/mathialo/bython.


python


Share


YouTube channel

Subscribe


Marcos Oliveira

Marcos Oliveira

Software developer
https://github.com/terroo

Related articles