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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file envoy-0.0.3.tar.gz.

File metadata

  • Download URL: envoy-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for envoy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 22b02009cfda2cf2cdb94a75a15ac3fd910aea8685c53e8e03715c7e9d8e8bde
MD5 548cc52576b6d73fa886439e3100d576
BLAKE2b-256 350155819eb9761339b65be3bda906110a3c7c0e9114374cce12a399c5992fc5

See more details on using hashes here.

File details

Details for the file envoy-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for envoy-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 789d274f8bc00401848678c0ee18199c1a57901749ed6b1a03a3ea53ec72ceef
MD5 d4ea7533bdea3edcde1b441ac34e1f50
BLAKE2b-256 3671b6ca37dd6bfe6ec851ee385e824fd4e459f2744caa2b8e7533555dcdeb8b

See more details on using hashes here.

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