Skip to main content

Simple API for running external processes.

Project description

Note: Work in progress.

This is a convenience wrapper around the subprocess module.

You don’t need this.

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

Project details


Download files

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

Source Distribution

envoy-0.0.3.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

envoy-0.0.3-py2.py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 2 Python 3

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