[PR #966] [CLOSED] Add plumbum #872

Closed
opened 2025-11-06 13:04:23 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/966
Author: @idavydov
Created: 10/26/2017
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/966 **Author:** [@idavydov](https://github.com/idavydov) **Created:** 10/26/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`0a80ca0`](https://github.com/vinta/awesome-python/commit/0a80ca008b16b6f0aa2413c11c705525c2af743c) Add plumbum ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description 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 :+1: to it, and usually, the maintainer will merge it when votes reach **20**. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:04:23 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#872