I would more like to support some kind of pipes, eg.:

123 | add10 | str | print

UPD: Some of my workarounds (dont try this at home lol): [twitter thread] https://twitter.com/tandavaya/status/1155925017848242176

Take a look at marcel: https://github.com/geophile/marcel. It is a pipe-objects-instead-of-strings shell, implemented in Python. But it is also an API allowing scripting from inside Python, e.g.

    for file, size in ls('/home/jao') | map(lambda f: (f, f.size)):
        print(f'{file.name}: {size}')