libtmux is a typed Python library that provides a wrapper for interacting programmatically with tmux, a terminal multiplexer. You can use it to manage tmux servers, sessions, windows, and panes. Additionally, libtmux powers tmuxp, a tmux workspace manager. libtmux builds upon tmux’s target and formats to create an object mapping to traverse, inspect and interact with live tmux sessions.
...It is a simplified version of the famous expect utility which interprets a scripting language to dialog with an interactive program as a human operator would do.
The package offers also an API to pilot interactive programs from C Language programs and two application libraries (ISYS and RSYS) as alternatives to system() from the C library.
Ruby library to pilot interactive command line processes in real time
Ruby library giving a simple way to pilot an external process' stdin, stdout and stderr in real time. Very useful for interactive processes testing or automation.