datalad_core.runners
Execution of subprocesses
This module provides all relevant components for subprocess execution. The
main work horse is iter_subproc(), a context
manager that enables interaction with a subprocess in the form of an iterable
for input/output processing. Execution errors are communicated with the
CommandError exception. In addition, a few
convenience functions are provided to execute Git commands (including
git-annex).
|
Call Git with no output capture, raises on non-zero exit. |
|
Call Git for any (small) number of lines of output |
|
Call Git for a single line of output |
|
Call Git and report success or failure of the command |
|
Runs a git-annex command and yields JSON-based results |
|
Context manager to communicate with a subprocess using iterables |
|
Context manager to communicate with a subprocess using iterables |
|
Context manager to communicate with a subprocess using iterables |
|
Raised when a subprocess execution fails (non-zero exit) |