sh 0,-2,7,0,1 travis-ci python

Python process launching

2 years after MIT

.. image:: https://raw.githubusercontent.com/amoffat/sh/master/logo-230.png :target: https://amoffat.github.com/sh :alt: Logo

|

.. image:: https://img.shields.io/pypi/v/sh.svg?style=flat-square :target: https://pypi.python.org/pypi/sh :alt: Version .. image:: https://img.shields.io/pypi/pyversions/sh.svg?style=flat-square :target: https://pypi.python.org/pypi/sh :alt: Python Versions .. image:: https://img.shields.io/travis/amoffat/sh/master.svg?style=flat-square :target: https://travis-ci.org/amoffat/sh :alt: Build Status .. image:: https://img.shields.io/coveralls/amoffat/sh.svg?style=flat-square :target: https://coveralls.io/r/amoffat/sh?branch=master :alt: Coverage Status

|

sh is a full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy and PyPy3 that allows you to call any program as if it were a function:

.. code:: python

from sh import ifconfig
print ifconfig("eth0")

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

Docs <https://amoffat.github.com/sh>__

Installation

::

$> pip install sh

Updating the docs

Check out the gh-pages <https://github.com/amoffat/sh/tree/gh-pages>_ branch and follow the README.rst there.

Developers

Testing

First install the development requirements::

$> pip install -r requirements-dev.txt

The run the tests for all Python versions on your system::

$> python sh.py test

To run a single test for all environments::

$> python sh.py test FunctionalTests.test_unicode_arg

To run a single test for a single environment::

$> python sh.py test -e 3.4 FunctionalTests.test_unicode_arg

Coverage

First run all of the tests::

$> python sh.py test

This will aggregate a .coverage. You may then visualize the report with::

$> coverage report

Or generate visual html files with::

$> coverage html

Which will create ./htmlcov/index.html that you may open in a web browser.

Related Repositories

go-sh

go-sh

like python-sh, for easy call shell with golang. ...

checksec.sh

checksec.sh

Checksec.sh ...

rustup.sh

rustup.sh

The rustup.sh script for installing Rust from release channels ...

rustup.sh

rustup.sh

The rustup.sh script for installing Rust from release channels ...

build.sh

build.sh

build.sh is a script for managing drush make based projects ...


Top Contributors

amoffat ziberna mcclymont roryk dmedvinsky jakirkham msabramo ahhentz dbarnett pcn imankulov tgs swayf bahadir simplyarjen arthurdarcet themalkolm kanzure eirnym ecederstrand nopper Ikke jezdez lencioni akerl nemec ppannuto ralphbean tianon tdudziak

Releases

-   1.11 zip tar
-   1.10 zip tar
-   1.08 zip tar
-   1.07 zip tar
-   1.06 zip tar
-   1.04 zip tar
-   1.03 zip tar
-   1.02 zip tar
-   1.01 zip tar
-   1.0 zip tar
-   0.109 zip tar
-   0.108 zip tar
-   0.107 zip tar
-   0.105 zip tar
-   0.103 zip tar
-   0.102 zip tar
-   0.101 zip tar
-   0.100 zip tar
-   0.99 zip tar
-   0.98 zip tar
-   0.97 zip tar
-   0.95 zip tar
-   0.94 zip tar
-   0.93 zip tar
-   0.92 zip tar
-   0.91 zip tar
-   0.90 zip tar
-   0.82 zip tar
-   0.81 zip tar
-   0.80 zip tar