py

'python -c', with tab completion and shorthand

Install

All systems
curl cmd.cat/py.sh
Debian Debian
apt-get install pythonpy
Ubuntu
apt-get install pythonpy
image/svg+xml Kali Linux
apt-get install pythonpy
Windows (WSL2)
sudo apt-get update sudo apt-get install pythonpy
Raspbian
apt-get install pythonpy

pythonpy

'python -c', with tab completion and shorthand

pythonpy is an utility that facilitates the usage of Python one-liners. The command 'py' evaluates a string consisting of any Python expression. It can do anything from simple arithmetic to complex operations, importing modules automatically. It also comes with tab completion. Its usage is not restricted to single expressions only. There's also the possibility to pipe data from stdin and to stdout, even generating strings to be evaluated by other programs.