Skip to main content

Python subprocess interface

Project description

[![Build Status](]( [![Coverage Status](](

[![Version](]( [![Downloads](](

sh (previously [pbs]( is a full-fledged subprocess replacement for Python 2.6 - 3.4 that allows you to call any program as if it were a function:

`python from sh import ifconfig print ifconfig("eth0") `

sh is not a collection of system commands implemented in Python.

# Installation

$> pip install sh

# Complete documentation @

# Testing

First install the development requirements:

$> pip install -r requirements-dev.txt

Then use [tox]( test runner:

$> tox

To run a single test for all environments:

$> tox FunctionalTests.test_unicode_arg

To run a single test for a single environment:

$> tox -e py34 FunctionalTests.test_unicode_arg

Download files

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

Source Distribution

sh-1.10.tar.gz (36.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page