IABSD.fr/ports/sysutils/py-command_runner

Branch :


Log

Author Commit Date CI Message
1427b990 2022-11-13 15:29:41 bump for MODPY_DEFAULT_VERSION_3 change
2206a800 2022-09-13 20:56:17 rename MODPY_PEP517 to MODPY_PYBUILD which is a bit less of a magic-numbers name and more of a nod at the frontend we're actually using for the build.
b98ba454 2022-08-21 13:31:00 add comments to patches
fa37916d 2022-08-21 13:26:24 import /usr/ports/mystuff/sysutils/py-command_runner, ok kmos@ command_runner's purpose is to run external commands from Python, just like "subprocess" on which it relies, while solving various problems a developer may face, including: - Handling of all possible subprocess.popen / subprocess.check_output scenarios / python versions in one handy function without encoding / timeout hassle. - Allow stdout/stderr stream output to be redirected to callback functions / output queues / files so you get to handle output in your application while commands are running. - Callback to optional stop check so we can stop execution from outside command_runner. - Callback with optional process information so we get to control the process from outside command_runner.