1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- Metadata-Version: 1.1
- Name: Command
- Version: 0.1.0
- Summary: Command runner with debug capabilities
- Home-page: http://github.com/helgi/python-command
- Author: Helgi Þorbjörnsson
- Author-email: helgi@php.net
- License: MIT License
- Description: 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
- Keywords: subprocess,command
- Platform: any
- Classifier: Development Status :: 3 - Alpha
- Classifier: Intended Audience :: Developers
- Classifier: Topic :: Utilities
- Classifier: License :: OSI Approved :: MIT License
- Classifier: Programming Language :: Python
- Classifier: Programming Language :: Python :: 2.6
- Classifier: Programming Language :: Python :: 2.7
- Classifier: Programming Language :: Python :: 3.2
- Classifier: Programming Language :: Python :: 3.3
|