On Thu, Aug 26, 2021 at 09:15:21PM -0600, Finn Mason <finnjavie...@gmail.com> 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/ p...@phdru.name Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/YC35KBUF5TV3VRZP7AFXUEI2OTGAPOBX/ Code of Conduct: http://python.org/psf/codeofconduct/