Command-0.1.0
توضیحات
Command runner with debug capabilities
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | Command-0.1.0 |
| نام | Command |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Helgi Þorbjörnsson |
| ایمیل نویسنده | helgi@php.net |
| آدرس صفحه اصلی | http://github.com/helgi/python-command |
| آدرس اینترنتی | https://pypi.org/project/Command/ |
| مجوز | MIT License |
Command
=======
.. image:: https://travis-ci.org/helgi/python-command.png
:target: https://travis-ci.org/helgi/python-command
Wrapper around subprocess.popen with on the fly debug / logging
capabilities and timeout handling.
Uses tempfiles for stdout/stderr to get past the 64kb subprocess.PIPE
bug/limitation in python.
Normal command run
.. code:: python
import command
response = command.run(['ls'])
print response.output
print response.exit
Print the output as it happens
.. code:: python
import command
def debug(text):
print text
response = command.run(['ls'], debug=debug)
print response.output
print response.exit
License
=======
MIT - See LICENSE
نحوه نصب
نصب پکیج whl Command-0.1.0:
pip install Command-0.1.0.whl
نصب پکیج tar.gz Command-0.1.0:
pip install Command-0.1.0.tar.gz