On Thu, Aug 26, 2021 at 09:15:21PM -0600, Finn Mason <[email protected]> wrote: > > Is this too magical? > > result = run('cat file.txt') | run('sort) | run('grep hello', > capture_output=True, text=True).stdout > > Interesting idea, especially overloading the union/pipe operator (|). I > like it a lot. It reminds me of pathlib.Path (which is a wonderful tool), > with its slash operator overload.
The idea is quite standard now. See https://pypi.org/project/shell-pipes/ https://pypi.org/search/?q=shell+pipes Oleg. -- Oleg Broytman https://phdru.name/ [email protected] Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/YC35KBUF5TV3VRZP7AFXUEI2OTGAPOBX/ Code of Conduct: http://python.org/psf/codeofconduct/
