[Python-ideas] easier subprocess piping and redirection
Oleg Broytman
phd at phdru.name
Wed Feb 27 14:23:29 CET 2013
On Wed, Feb 27, 2013 at 01:20:17PM +0100, Timo Kluck <tkluck at infty.nl> wrote:
> 2013/2/27 Stefan Drees <stefan at drees.name>:
> >
> > thanks a lot for sharing this. How does this relate to plumbum :-?
> >
> > >>> from plumbum.cmd import echo, head
> > >>> chain = echo['a\nb'] | head['-n1']
> > >>> chain()
> > u'a\n'
>
> Fantastic! I kind of guessed that it would have existed already, but
> didn't know where to find it. Thanks for pointing this out!
Very easy -- search for packages at Python Package Index, PyPI:
https://pypi.python.org/pypi
https://pypi.python.org/pypi?%3Aaction=search&term=pipe&submit=search
Add your package to the Index so other people can find it.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list