tmuxp 1.70.1
pip install tmuxp
Released:
Session manager for tmux, which allows users to save and load tmux sessions through simple configuration files.
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
π Avatar for git-pull from gravatar.comgit-pull
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tony Narlock
- Tags ncurses , session manager , terminal , tmux
- Requires: Python <4.0, >=3.10
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
tmuxp
Session manager for tmux, which allows users to save and load tmux sessions through simple configuration files. Powered by libtmux.
π Python Package
π Docs
π Build status
π Code Coverage
π License
New to tmux? The Tao of tmux is available on Leanpub and Amazon Kindle. Read and browse the book for free on the web.
Have some spare time? Help us triage and code review and the tracker. See issue #290!
Installation
pip:
$ pipinstall--usertmuxp
If you're managing the project with uv, add tmuxp as a dependency instead:
$ uvaddtmuxp
To run tmuxp without installing it globally, similar to pipx, invoke it with
uvx:
$ uvxtmuxp
Homebrew:
$ brewinstalltmuxp
Debian / ubuntu:
$ sudoaptinstalltmuxp
Nix:
$ [[-z$(whichtmux)]]&&(nix-env-itmux&&nix-env-itmuxp)||nix-env-itmuxp
Find the package for your distro on repology: https://repology.org/project/tmuxp/versions
Developmental releases:
-
pip:
pip install --user --upgrade --pre tmuxpOr request the pre-release from a uv project environment:
uv add 'tmuxp>=1.10.0b1' -
uvx:
uvx tmuxp -
pipx:
pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --forceThen use
tmuxp@next load [session].
Load a tmux session
Load tmux sessions via json and YAML, tmuxinator and teamocil style.
session_name:4-pane-split windows: -window_name:dev window layout:tiled shell_command_before: -cd ~/# run as a first command in all panes panes: -shell_command:# pane no. 1 -cd /var/log# run multiple commands in this pane -ls -al | grep \.log -echo second pane# pane no. 2 -echo third pane# pane no. 3 -echo fourth pane# pane no. 4
Save as mysession.yaml, and load:
tmuxp load ./mysession.yaml
Projects with .tmuxp.yaml or .tmuxp.json load via directory:
tmuxp load path/to/my/project/
Load multiple at once (in bg, offer to attach last):
tmuxp load mysession ./another/project/
Name a session:
tmuxp load -s session_name ./mysession.yaml
simple and very elaborate config examples
User-level configurations
tmuxp checks for configs in user directories:
$TMUXP_CONFIGDIR, if set$XDG_CONFIG_HOME, usually $HOME/.config/tmuxp/$HOME/.tmuxp/
Load your tmuxp config from anywhere by using the filename, assuming ~/.config/tmuxp/mysession.yaml (or .json):
$ tmuxploadmysession
See author's tmuxp configs and the projects' tmuxp.yaml.
Shell
New in 1.6.0:
tmuxp shell launches into a python console preloaded with the attached
server, session, and window in
libtmux objects.
$ tmuxpshell (Pdb) server <libtmux.server.Server object at 0x7f7dc8e69d10> (Pdb) server.sessions [Session($1 your_project)] (Pdb) session Session($1 your_project) (Pdb) session.name 'your_project' (Pdb) window Window(@3 1:your_window, Session($1 your_project)) (Pdb) window.name 'your_window' (Pdb) window.panes [Pane(%6 Window(@3 1:your_window, Session($1 your_project))) (Pdb) pane Pane(%6 Window(@3 1:your_window, Session($1 your_project))
Supports PEP
553 breakpoint()
(including PYTHONBREAKPOINT). Also supports direct commands via -c:
$ tmuxpshell-c'print(window.name)' my_window $ tmuxpshell-c'print(window.name.upper())' MY_WINDOW
Read more on tmuxp shell in the CLI docs.
Pre-load hook
Run custom startup scripts (such as installing project dependencies) before loading tmux. See the before_script example
Load in detached state
You can also load sessions in the background by passing -d flag
Screenshot
π imageFreeze a tmux session
Snapshot your tmux layout, pane paths, and window/session names.
$ tmuxpfreezesession-name
See more about freezing tmux sessions.
Convert a session file
Convert a session file from yaml to json and vice versa.
$ tmuxpconvertfilename
This will prompt you for confirmation and shows you the new file that is going to be written.
You can auto confirm the prompt. In this case no preview will be shown.
$ tmuxpconvert-yfilename $ tmuxpconvert--yesfilename
Plugin System
tmuxp has a plugin system to allow for custom behavior. See more about the Plugin System.
Debugging Helpers
The load command provides a way to log output to a log file for
debugging purposes.
$ tmuxpload--log-file<log-file-name>.
Collect system info to submit with a Github issue:
$ tmuxpdebug-info ------------------ environment: system: Linux arch: x86_64 # ...soon
Docs / Reading material
See the Quickstart.
Documentation homepage (also in δΈζ)
Want to learn more about tmux itself? Read The Tao of Tmux online.
Donations
Your donations fund development of new features, testing and support. Your money will go directly to maintenance and development of the project. If you are an individual, feel free to give whatever feels right for the value you get out of the project.
See donation options at https://tony.sh/support.html.
Project details
- tmux support: 3.2+
- python support: >= 3.10, pypy, pypy3
- Source: https://github.com/tmux-python/tmuxp
- Docs: https://tmuxp.git-pull.com
- API: https://tmuxp.git-pull.com/internals/api/
- Changelog: https://tmuxp.git-pull.com/history/
- Issues: https://github.com/tmux-python/tmuxp/issues
- Test Coverage: https://codecov.io/gh/tmux-python/tmuxp
- pypi: https://pypi.python.org/pypi/tmuxp
- Open Hub: https://www.openhub.net/p/tmuxp-python
- Repology: https://repology.org/project/tmuxp/versions
- License: MIT.
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
π Avatar for git-pull from gravatar.comgit-pull
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tony Narlock
- Tags ncurses , session manager , terminal , tmux
- Requires: Python <4.0, >=3.10
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmuxp-1.70.1.tar.gz.
File metadata
- Download URL: tmuxp-1.70.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed29a9d286bfc81b8ec338a804414a54959f8cbccc0f83ebcc1f323fa55e7a95
|
|
| MD5 |
5adfcbf389167e05cd631099c3c8370a
|
|
| BLAKE2b-256 |
78025e5c1e67652742aed7e7a586ab1ff23566ad697e1e605ad326180a6183af
|
Provenance
The following attestation bundles were made for tmuxp-1.70.1.tar.gz:
Publisher:
tests.yml on tmux-python/tmuxp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tmuxp-1.70.1.tar.gz -
Subject digest:
ed29a9d286bfc81b8ec338a804414a54959f8cbccc0f83ebcc1f323fa55e7a95 - Sigstore transparency entry: 1843672113
- Sigstore integration time:
-
Permalink:
tmux-python/tmuxp@7e45c722ced84645d11dfa923c5d3146d5efe904 -
Branch / Tag:
refs/tags/v1.70.1 - Owner: https://github.com/tmux-python
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@7e45c722ced84645d11dfa923c5d3146d5efe904 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tmuxp-1.70.1-py3-none-any.whl.
File metadata
- Download URL: tmuxp-1.70.1-py3-none-any.whl
- Upload date:
- Size: 98.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45a251a5fb9e56bd2f2f8573d0c33dcbba6a6d94f49d68b036e9c4545d4f6679
|
|
| MD5 |
22a0e3189630c2670e807dce21859a7d
|
|
| BLAKE2b-256 |
00842dab5aafa65b1b8149d3704a90cc74d09b61a2c75c50208c75a27e201397
|
Provenance
The following attestation bundles were made for tmuxp-1.70.1-py3-none-any.whl:
Publisher:
tests.yml on tmux-python/tmuxp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tmuxp-1.70.1-py3-none-any.whl -
Subject digest:
45a251a5fb9e56bd2f2f8573d0c33dcbba6a6d94f49d68b036e9c4545d4f6679 - Sigstore transparency entry: 1843672191
- Sigstore integration time:
-
Permalink:
tmux-python/tmuxp@7e45c722ced84645d11dfa923c5d3146d5efe904 -
Branch / Tag:
refs/tags/v1.70.1 - Owner: https://github.com/tmux-python
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@7e45c722ced84645d11dfa923c5d3146d5efe904 -
Trigger Event:
push
-
Statement type:
