envoy-0.0.3
توضیحات
Simple API for running external processes.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | envoy-0.0.3 |
| نام | envoy |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kenneth Reitz |
| ایمیل نویسنده | me@kennethreitz.com |
| آدرس صفحه اصلی | https://github.com/kennethreitz/envoy |
| آدرس اینترنتی | https://pypi.org/project/envoy/ |
| مجوز | MIT |
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'>]
نحوه نصب
نصب پکیج whl envoy-0.0.3:
pip install envoy-0.0.3.whl
نصب پکیج tar.gz envoy-0.0.3:
pip install envoy-0.0.3.tar.gz