Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Thin convenience wrappers for shelling out commands easily from python

Project description

PyPI version

python-shellout

Thin convenience wrappers for shelling out commands easily from python

Installation

In shell with enough admin rights type

$ git clone https://github.com/Chiel92/python-shellout
$ cd python-shellout
$ python3 setup.py install

Or to obtain the version from PyPI do

$ pip install pyshellout

Example Usage

from pyshellout import get

files=get(r'find . -name "*.cpp" -o -name "*.h" -print0')

for f in files.z:
    print(f)
    matches=get(r"grep -zZ 'some regex pattern' '{filename}'", filename=f)
    print(matches.z)

A more elaborate example can be found on this blog post about automatically archiving merged git branches.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyshellout, version 0.2.10
Filename, size File type Python version Upload date Hashes
Filename, size pyshellout-0.2.10.zip (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page