[EdLUG] Mixing shell and Python

Gábor Majoros mersaint at gmail.com
Tue Feb 2 21:45:42 UTC 2021


Speaking of python saw this today in case someone was interested.

https://www.reddit.com/r/learnpython/comments/la98y1/automate_the_boring_stuff_with_python_online/

G

On Tue, 2 Feb 2021, 21:39 Thomas Kluyver, <thomas at kluyver.me.uk> wrote:

> Following our conversation about bash & Python, I remembered another tool
> that might be of interest:
>
> https://github.com/hauntsaninja/pyp
>
> This lets you use Python from bash, for pipelines like:
>
> ps x | pyp 'line.split()[4]'
>
> For context, the conversation in today's meeting encompassed Tai's blog
> post about using shell style pipelines of commands in Python (
> https://dev.to/taikedz/shellpipe-shellpipe-py-is-exactly-what-you-think-12bi
> ) and the xonsh shell (https://xon.sh/ ) which mixes shell-like syntax
> with Python.
>
> Thomas
>
> --
> EdLUG mailing list
> EdLUG at mailman.lug.org.uk
> https://lists.edlug.org.uk/mailman/listinfo/edlug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20210202/57e99176/attachment-0002.html>


More information about the EdLUG mailing list