tmux-python/libtmux
⚙️ Python API / wrapper for tmux observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 92
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 3755
- days_rel: 52
- days_push: 8
- n_releases_24m: 38
Adoption not part of the score
1203 stars · 126 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
libtmux is a typed, object-oriented Python API for tmux, letting you control servers, sessions, windows, and panes as Python objects instead of parsing shell output. It powers tmuxp and includes a pytest plugin for isolated tmux test fixtures.
Use cases
- control tmux sessions from python
- automate terminal multiplexer workflows
- create and manage tmux windows and panes programmatically
- write pytest tests with isolated tmux sessions
- script tmux session setup and teardown
- query live tmux sessions without parsing shell output
When to choose
- you need programmatic, typed control of tmux from Python
- you're building tools like tmuxp that manage tmux workspaces
- you want isolated tmux fixtures in pytest
- you need to traverse or filter live tmux sessions, windows, and panes
When to avoid
- you just need simple one-off tmux shell commands
- you use tmux older than 3.2a
- you need a stable 1.0 API - libtmux is pre-1.0 and APIs may change
Facets
library · maturity active
developer-tools cli testing workflow-automation developer-tools python cli tmux terminal-multiplexer orm-wrapper pytest-plugin session-management command-line automation terminal linux macos
5 sources
- readme: https://github.com/tmux-python/libtmux · fetched 2026-08-28 · 8acaa62e7f81
- homepage: https://libtmux.git-pull.com · fetched 2026-08-29 · ce727827e1a8
- site_page: https://libtmux.git-pull.com/quickstart · fetched 2026-08-29 · 302af9a66338
- registry_pypi: https://pypi.org/pypi/libtmux/json · fetched 2026-08-29 · 8df6f854b99b
- site_page: https://libtmux.git-pull.com/history · fetched 2026-08-29 · 42657b3534fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tmux-python/libtmux | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="tmux-python/libtmux")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem