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

Python API

Python documentation

libtmux.Session.from_session_id

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
from_session_id ( cls , server : Server , session_id : str ) → Session
methodclassmethod [source]
methodclassmethod [source]
from_session_id

Create Session from existing session_id.

Examples

>>> Session.from_session_id(
... server=session.server, session_id=session.session_id
... )
Session($1 ...)
Parameters
  • server ( Server ) – The tmux server holding the session.

  • session_id ( str ) – Session id, e.g. "$1".

Returns

Session

Raises

0 declared, 0 inherited

Esc

Type to search.