pythonpy - 'python -c', with tab completion and shorthand
py [-x] [-l] [-c PRE_CMD] [-C POST_CMD] [-V] [-h] [expression]
pythonpy will evaluate any Python expression from the command line.
This will be done by the same Python interpreter that runs it. As this version uses Python 3, it is compatible with Python 3 syntax only.
Import any module automatically:
$ py '3 * 1.5'
Multiply each line of input by 7:
$ py 'math.exp(1)'
Remove every file returned by the find command:
$ py 'range(3)' | py -x 'int(x)*7'
$ find . -type f | py -x '"rm %s" % x' | sh
Bugs should be reported as issues at the project's GitHub page: <https://github.com/Russell91/pythonpy/issues>
pythonpy is developed by Russell Stewart <email@example.com>.
This man page was written by Tiago Ilieve <firstname.lastname@example.org> for the Debian distribution (but it may be used by others).
|20 May 2016|