{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Shells","url":"https://skillfed.io/packages/category/system-shells"}],"enrichment":{"capability":"libtmux provides a typed Python API to control tmux (the terminal multiplexer) programmatically, letting you manage servers, sessions, windows, and panes as Python objects instead of parsing shell commands.","skillfed_tags":["terminal-automation","testing-fixtures","typed-api"],"use_cases":["Automate tmux session setup and teardown in deployment or development scripts without shell parsing.","Write pytest tests for tools that interact with tmux, using isolated fixtures for each test.","Build terminal UI tools or dashboards that need to query and control live tmux state programmatically.","Capture pane output and send commands to tmux from Python applications or background agents.","Implement tmux-based workflow orchestration (e.g., spawning parallel tasks in separate panes)."],"what_it_does":"libtmux is a typed Python wrapper around tmux that replaces shell command parsing with real object-oriented control. Instead of running `tmux ls` and parsing output, you work with `Server`, `Session`, `Window`, and `Pane` objects that reflect live tmux state. The library supports querying and filtering collections, traversing the hierarchy (pane \u2192 window \u2192 session), sending keystrokes to panes, and capturing output\u2014all with full type hints.\n\nThe package is battle-tested in production through tmuxp (a declarative workspace manager built on top of it) and includes a pytest plugin for writing isolated tmux tests. It also supports context managers for cleanup, multiple tmux sockets, and a `.cmd()` escape hatch for raw tmux commands when needed. Code running inside a tmux pane can use `from_env()` to locate itself in the hierarchy.","worth_installing":"Yes. libtmux is actively maintained, has no external dependencies, supports current Python versions (3.10\u20133.14, PyPy), and solves a real problem for anyone automating tmux or testing tmux-aware tools. The MIT license imposes no restrictions. Start with a pinned version range (e.g., `libtmux==0.62.*`) since the package is pre-1.0."},"id":"libtmux","links":{"html":"https://skillfed.io/packages/libtmux","md":"https://skillfed.io/packages/libtmux.md","pypi":"https://pypi.org/project/libtmux/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-12","license_spdx":null,"license_treatment":"permissive","name":"libtmux","python_support":"supports_current","summary":"Typed library that provides an ORM wrapper for tmux, a terminal multiplexer."},"popularity":{"monthly_downloads":13140422,"position":1294,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.62.0"}
