xonsh

In xonsh how can I receive from a pipe to a python expression?

In xonsh how can I receive from a pipe to a python expression? Question: In the xonsh shell how can I receive from a pipe to a python expression? Example with a find command as pipe provider: find $WORKON_HOME -name pyvenv.cfg -print | for p in <stdin>: $(ls -dl @(p)) The for p in <stdin>: …

Total answers: 2

infix operator to pipe subprocess output to python function

infix operator to pipe subprocess output to python function Question: Can xonsh pipe subprocess output to a python function? int($(ls|wc -l)) > 20 as ls | wc -l | int > 20 I can get close from toolz import pipe pipe($(ls |wc -l),int) > 20 this comes searching ways to port # bash [ $(ls …

Total answers: 2