News for hackers. Stuff that matters.
Re:Use Python for Scripting by Lvl999Noob on Saturday December 13, 2025 @08:57PM (#46260178)
And for the opposite, where you keep your main pipeline in shell but want to use python for some parts of it, there is pypyp.

https://pypi.org/project/pypyp/

It takes cares of the input and output boilerplate so you can focus on the actual code that you wanted python for.

    > seq 1 5 | pyp 'sum(map(int, lines))'
    > ls | pyp 'Path(x).suffix'
Re:Use Python for Scripting by two_handfuls on Sunday December 14, 2025 @12:14PM (#46264716)
So cool! I made pawk [1] to get some of the same features, but yours is better! Congrats!

[1] https://github.com/jean-philippe-martin/pawk

Re:Use Python for Scripting by Lvl999Noob on Wednesday December 17, 2025 @05:00AM (#46300076)
I am not the author haha. Just someone who found and really liked that library.