Python
Python
Drive a real tmux from Python.
libtmux
Install
$ pip install libtmuxQuickstart
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
Topics
Deep dives into one subject at a time, in Python: architecture, traversal, options and hooks.
Guides
Task-oriented walkthroughs in Python — install tmux, then the round trip every real program starts from.
Examples
The same concrete tasks worked through in Python, with each snippet checked by the port's own tests.
Concepts
The domain model every port shares — the object hierarchy, transports and filtering.