On Tue, Jan 27, 2015 at 05:13:45PM -0800, Thomas Kluyver
On 27 January 2015 at 16:57, Oleg Broytman
wrote: Have you ever looked at wrappers like these:
https://executor.readthedocs.org/en/latest/ https://sarge.readthedocs.org/en/latest/ https://github.com/kennethreitz/envoy https://amoffat.github.io/sh/
I was aware of three of them (sarge, envoy, sh).
But the friction isn't enough to push me to add another dependency: I invariably use subprocess and put up with writing somewhat awkward code.
The worst outcome of included batteries: people are always trying to push all possible batteries into stdlib. :-(
Envoy and sarge appear to implement something very similar to my proposal, but as part of a more ambitious goal, namely shell-style pipelines handled by Python.
Something like these? https://pypi.python.org/pypi/iterpipes https://github.com/kelleyk/py3k-iterpipes https://github.com/airekans/Pypiep http://plumbum.readthedocs.org/en/latest/ https://pypi.python.org/pypi/popen https://pypi.python.org/pypi/shell.py https://seveas.github.io/whelk/
Thomas
Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.