kennethreitz 5132ca881e Merge pull request #71 from kracekumar/master
Handle exception for non existing commands
2014-08-13 10:51:07 -04:00
2014-07-06 23:35:35 +05:30
png
2011-08-27 15:38:38 -04:00
2012-03-07 22:00:44 -05:00
2011-08-31 00:33:37 -04:00
2013-01-21 03:26:24 -08:00
2011-12-28 11:47:52 +01:00
2014-03-02 19:02:34 -08:00
2012-06-08 11:38:06 +01:00

Envoy: Python Subprocesses for Humans.
======================================

**Note:** Work in progress.

This is a convenience wrapper around the `subprocess` module.

You don't need this.

.. image:: https://github.com/kennethreitz/envoy/raw/master/ext/in_action.png

But you want it.


Usage
-----

Run a command, get the response::

    >>> r = envoy.run('git config', data='data to pipe in', timeout=2)

    >>> r.status_code
    129
    >>> r.std_out
    'usage: git config [options]'
    >>> r.std_err
    ''

Pipe stuff around too::

    >>> r = envoy.run('uptime | pbcopy')

    >>> r.command
    'pbcopy'
    >>> r.status_code
    0

    >>> r.history
    [<Response 'uptime'>]
S
Description
No description provided
Readme MIT 241 KiB
Languages
Python 100%