libtmux Reference MCP Search

Python

Python

Drive a real tmux from Python.

libtmux

Install

$ pip install libtmux

Quickstart

import libtmux
server = libtmux.Server()
session = server.new_session(session_name="demo")
session.active_pane.send_keys("echo hello from libtmux")

The shape follows the README's Server() opening; new_session, active_pane and send_keys are verified against src/libtmux/server.py, session.py and pane.py, not quoted verbatim from one block.

API References

Read on

Esc

Type to search.