bpython

Enhanced Python interpreter with syntax highlighting and autocompletion

brewmacoslinux
Try with needOr install directly
Source

About

Fancy interface to the Python interpreter

Commands

bpython

Examples

Start an interactive bpython session$ bpython
Execute a Python script with bpython$ bpython script.py
Run bpython with custom configuration$ bpython -i script.py