Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

Python documentation

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
RubyLuaTypeScriptRustGoJava.NETC++Swift
sessions ( self ) → QueryList[Session]
property [source]
property [source]
sessions

Sessions contained in server.

Can be accessed via .sessions.get() and .sessions.filter()

Returns an empty QueryList when tmux's list-sessions fails for any reason — no running daemon, a missing socket, a permission error, or a subprocess failure. To distinguish "no sessions" from "tmux unreachable", call Server.is_alive or Server.raise_if_dead .

Discussed in Traversal

In other ports List the server’s sessions

0 declared, 0 inherited

Esc

Type to search.