libtmux
Python API / wrapper for tmux
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.