File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,10 @@ Pre-releases (alpha / beta / rc):
5050pip install --upgrade --pre libtmux
5151```
5252
53- With pipx:
53+ With pipx (installs as ` libtmux@next ` ) :
5454
5555``` bash
5656pipx install --suffix=@next " libtmux" --pip-args " \--pre" --force
57- # usage: libtmux@next [command]
5857```
5958
6059With uv / uvx:
@@ -72,13 +71,15 @@ pip install -e 'git+https://github.com/tmux-python/libtmux.git#egg=libtmux'
7271
7372Tip: libtmux is pre-1.0. Pin a range in projects to avoid surprises:
7473
74+ requirements.txt:
75+
7576``` ini
76- # requirements.txt
7777libtmux ==0.49.*
7878```
7979
80+ pyproject.toml:
81+
8082``` toml
81- # pyproject.toml
8283libtmux = " 0.49.*"
8384```
8485
@@ -90,13 +91,8 @@ Create and drive a tmux session entirely from Python.
9091import libtmux
9192import time
9293
93- # Connect to the server (starts one if not running)
9494server = libtmux.Server()
95-
96- # Use a unique name to avoid conflicts if you run this multiple times
9795session_name = f " libtmux-demo- { int (time.time())} "
98-
99- # Create the session and the initial window
10096session = server.new_session(session_name = session_name, window_name = " workspace" )
10197
10298window = session.active_window
You can’t perform that action at this time.
0 commit comments