Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A awesome-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 317
    • Merge requests 317
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vinta Chen
  • awesome-python
  • Merge requests
  • !966

Add plumbum

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/idavydov/patch-1 into master Oct 26, 2017
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: idavydov

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/idavydov/patch-1