Python subprocess interface
Project description
[](https://travis-ci.org/amoffat/sh) [](https://coveralls.io/r/amoffat/sh?branch=master)
[](https://pypi.python.org/pypi/sh) [](https://pypi.python.org/pypi/sh)
sh (previously [pbs](http://pypi.python.org/pypi/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 @ http://amoffat.github.com/sh
# Testing
First install the development requirements:
$> pip install -r requirements-dev.txt
Then use [tox](http://tox.readthedocs.org/en/latest/index.html) 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sh-1.11.tar.gz.
File metadata
- Download URL: sh-1.11.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590fb9b84abf8b1f560df92d73d87965f1e85c6b8330f8a5f6b336b36f0559a4
|
|
| MD5 |
7af8df6c92d29ff927b6db0146bddec3
|
|
| BLAKE2b-256 |
39ca1db6ebefdde0a7b5fb639ebc0527d8aab1cdc6119a8e4ac7c1c0cc222ec5
|