pipe Will try, but it took me days just to answer to your comments :/ For now I am just attaching my experient (pipe.py.txt).
Regarding sh: It looks quite interesting, and most of my scripting is Unix anyway (or WSL if on Windows). It is however somewhat inconvenient to use with fluentpy.
_(range(10)).map(lambda it: str(it)+"\n").call(lambda it: sh.sed("s/^/>> /", _in=it)).to(list)
^^ ^^
In scripting contexts, something like
_(strings).sh.sed("s/^/>> /").to(list)
would be preferable. As it is, that would make sh a thing wrapper to the sh module, that sets _in. And maybe for consistency some ish, that also sets _iter=True...
The downside would be, that it would introduce a feature that doesn't work on Windows. My popen based experiment is platform independent by contrast. Will look into it more.
Originally posted by @kbauer in #6 (comment)
pipe Will try, but it took me days just to answer to your comments :/ For now I am just attaching my experient (pipe.py.txt).
Regarding sh: It looks quite interesting, and most of my scripting is Unix anyway (or WSL if on Windows). It is however somewhat inconvenient to use with
fluentpy.In scripting contexts, something like
would be preferable. As it is, that would make
sha thing wrapper to theshmodule, that sets_in. And maybe for consistency someish, that also sets_iter=True...The downside would be, that it would introduce a feature that doesn't work on Windows. My
popenbased experiment is platform independent by contrast. Will look into it more.Originally posted by @kbauer in #6 (comment)