Skip to content

Add plumbum#966

Closed
idavydov wants to merge 1 commit intovinta:masterfrom
idavydov:patch-1
Closed

Add plumbum#966
idavydov wants to merge 1 commit intovinta:masterfrom
idavydov:patch-1

Conversation

@idavydov
Copy link

@idavydov idavydov commented Oct 26, 2017

Plumbum allows you to run shell commands (and pipe them) in a very intuitive and powerful way.

It has almost three times more stars on github than delegator.py, so I think it deserves metioning.

An example:

>>> chain = ls["-a"] | grep["-v", "\\.py"] | wc["-l"]
>>> print chain
/bin/ls -a | /bin/grep -v '\.py' | /usr/bin/wc -l
>>> chain()
u'13\n'

What is this Python project?

Plumbum has very flexible and intuitive way of running shell commands. You can transform them to functions, pipe them etc.

What's the difference between this Python project and similar ones?

  • Much more clear syntax than popen and subprocess.
  • More pythonic way of piping commands than delegator.py and sarge
  • More shell style syntax than sh.
  • It seems to be developed a bit more actively than sh.
  • Seamless remote program execution (i.e. ssh)
  • Less non-obvious magic than in sh.

--

Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.

Plumbum allows you to run shell commands (and pipe them) in a very intuitive and powerful way.

It has almost three times more stars on github than delegator.py, so I think it deserves metioning.

An example:

```
>>> chain = ls["-a"] | grep["-v", "\\.py"] | wc["-l"]
>>> print chain
/bin/ls -a | /bin/grep -v '\.py' | /usr/bin/wc -l
>>> chain()
u'13\n'
```
@idavydov idavydov mentioned this pull request Nov 14, 2017
@vinta vinta force-pushed the master branch 2 times, most recently from 23abd09 to 40cd98b Compare June 6, 2019 19:55
@stale
Copy link

stale bot commented Oct 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 30, 2019
@stale stale bot closed this Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant