Kenneth Reitz 786f72fbbf history in init
2011-08-27 15:40:28 -04:00
2011-08-27 15:40:28 -04:00
png
2011-08-27 15:38:38 -04:00
2011-08-27 15:39:14 -04:00
2011-08-27 13:48:09 -04:00
hrm
2011-08-27 13:33:05 -04:00

Envoy: Simplified Subprocesses for Python
==========================================

**Note:** Work in progress.

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

You likely don't need this.

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


Usage
-----

::

    >>> 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
    ''

Soon, you'll be able to pass in pipe strings 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%