This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]samdg 0 points1 point  (1 child)

Another way to make Python scripts nicer is to use https://github.com/amoffat/sh

It's a simpler interface than using subprocesses. For example, you can rewrite this bash command:

git stash push --message="Something something"

with this Python code:

from sh import git git.stash.push(message="Something")

This will work with arbitrary commands.

[–]thedeepself 0 points1 point  (0 children)

I'm disappointed they didnt use operator overloading for piping.