Show HN: Pythonpy – the swiss army knife of the command line
1–10 of 45 posts
Re: Show HN: Pythonpy – the swiss army knife of the command line
#2Looks so useful, can't believe I never thought of hacking something to do that. Will experiment with it!
Re: Show HN: Pythonpy – the swiss army knife of the command line
#3Nice. Similar to PyP from Sony Imageworks:
http://opensource.imageworks.com/?p=pyp
The Pyed Piper Tutorial: http://www.youtube.com/watch?v=eWtVWF0JSJA
Re: Show HN: Pythonpy – the swiss army knife of the command line
#4ls | py -x '"mv %s %s.txt" % (x,x)' | sh has me worried, I can't find the escape code directly. Also you might wish to offer the following api ls | py -X '["mv","%s","%s.txt"] and run those using processes or sub-process. This would ensure the right argument in the right place. Just an idea.
Re: Show HN: Pythonpy – the swiss army knife of the command line
#5These sorts of things have been one of the strongholds of Perl, glad to see pythonic alternative.
Re: Show HN: Pythonpy – the swiss army knife of the command line
#6A simpler version of py is e ⌘ https://pypi.python.org/pypi/e/1.4.5
Re: Show HN: Pythonpy – the swiss army knife of the command line
#7You should put up a donation link. If more people do that and it becomes common practice to donate to useful open source tools / projects then imagine what more awesome stuff could be created. Many people desire to build tools but don't have the financial support to do so.
Re: Show HN: Pythonpy – the swiss army knife of the command line
#8is there a ruby equivalent?
Re: Show HN: Pythonpy – the swiss army knife of the command line
#9For those too lazy to learn the right shell commands ;)
Re: Show HN: Pythonpy – the swiss army knife of the command line
#10ls | py -x '"mv %s %s.txt" % (x,x)' | sh has me worried, I can't find the escape code directly. Also you might wish to offer the following api ls | py -X '["mv","%s","%s.txt"] and run those using processes or sub-process. This would ensure the right argument in the right place. Just an idea.
Of course for this case, using shutil (or something similar) would be preferable. Eg ls | py -x "shutil.move(x, "%s.txt" % x)"