Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Thin convenience wrappers for shelling out commands easily from python

Project Description

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.

Release History

This version
History Node

0.2.10

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1.2

Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
pyshellout-0.2.10.zip
(3.0 kB) Copy SHA256 Hash SHA256
Source None Jun 16, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting