tmuxp 1.6.5
pip install tmuxp==1.6.5
Newer version available (1.55.0)
Released:
tmux session manager
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tony Narlock
- Tags tmuxp
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
tmuxp, tmux session manager. built on `libtmux`_.
|pypi| |docs| |build-status| |coverage| |license|
**We need help!** tmuxp is a trusted session manager for tmux. If you
could lend your time to helping answer issues and QA pull requests, please
do! See `issue #290 <https://github.com/tmux-python/tmuxp/issues/290>`__!
**New to tmux?** `The Tao of tmux <https://leanpub.com/the-tao-of-tmux>`_ is
available on Leanpub and `Amazon Kindle`_. Read and browse the book for free
`on the web`_.
Installation
------------
.. code-block:: shell
tmuxp load ./mysession.yaml
Projects with *.tmuxp.yaml* or *.tmuxp.json* load via directory:
.. code-block:: sh
tmuxp load mysession ./another/project/
Name a session:
.. code-block:: bash
TMUXP_CONFIGDIR``, if set
- `` HOME/.config/tmuxp/*
- `` tmuxp load mysession
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.
.. code-block:: shell
1 your_project)]
(Pdb) session
Session( 1 your_project))
(Pdb) window.name
'your_window'
(Pdb) window.panes
[Pane(%6 Window(@3 1:your_window, Session( 1 your_project))
Python 3.7+ supports `PEP 553`_ ``breakpoint()`` (including
``PYTHONBREAKPOINT``). Also supports direct commands via ``-c``:
.. code-block:: shell
tmuxp shell -c 'print(window.name.upper())'
MY_WINDOW
Read more on `tmuxp shell`_ in the CLI docs.
.. _PEP 553: https://www.python.org/dev/peps/pep-0553/
.. _tmuxp shell: https://tmuxp.git-pull.com/cli.html#shell
Pre-load hook
-------------
Run custom startup scripts (such as installing project dependencies before
loading tmux. See the `bootstrap_env.py`_ and `before_script`_ example
Load in detached state
----------------------
You can also load sessions in the background by passing ``-d`` flag
Screenshot
----------
.. image:: https://raw.github.com/tmux-python/tmuxp/master/doc/_static/tmuxp-demo.gif
:scale: 100%
:width: 45%
:align: center
Freeze a tmux session
---------------------
Snapshot your tmux layout, pane paths, and window/session names.
.. code-block:: sh
tmuxp convert filename
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.
.. code-block:: sh
tmuxp convert --yes filename
Debugging Helpers
-----------------
The ``load`` command provides a way to log output to a log file for debugging
purposes.
.. code-block:: sh
tmuxp debug-info
------------------
environment:
system: Linux
arch: x86_64
# ... so on
Docs / Reading material
-----------------------
See the `Quickstart`_.
`Documentation`_ homepage (also in `中文`_)
Want to learn more about tmux itself? `Read The Tao of Tmux online`_.
.. _Documentation: http://tmuxp.git-pull.com
.. _Source: https://github.com/tmux-python/tmuxp
.. _中文: http://tmuxp-zh.rtfd.org/
.. _before_script: http://tmuxp.git-pull.com/examples.html#bootstrap-project-before-launch
.. _virtualenv: https://virtualenv.git-pull.com/
.. _Read The Tao of tmux online: http://tmuxp.git-pull.com/about_tmux.html
.. _author's tmuxp configs: https://github.com/tony/tmuxp-config
.. _python library: https://tmuxp.git-pull.com/api.html
.. _python API quickstart: https://tmuxp.git-pull.com/quickstart_python.html
.. _tmux(1): http://tmux.sourceforge.net/
.. _tmuxinator: https://github.com/aziz/tmuxinator
.. _teamocil: https://github.com/remiprev/teamocil
.. _Examples: http://tmuxp.git-pull.com/examples.html
.. _freezing tmux: http://tmuxp.git-pull.com/cli.html#freeze-sessions
.. _bootstrap_env.py: https://github.com/tmux-python/tmuxp/blob/master/bootstrap_env.py
.. _testing: http://tmuxp.git-pull.com/developing.html#test-runner
.. _python objects: http://tmuxp.git-pull.com/api.html#api
.. _tmuxp.yaml: https://github.com/tmux-python/tmuxp/blob/master/.tmuxp.yaml
.. _simple: http://tmuxp.git-pull.com/examples.html#short-hand-inline
.. _very elaborate: http://tmuxp.git-pull.com/examples.html#super-advanced-dev-environment
.. _Quickstart: http://tmuxp.git-pull.com/quickstart.html
.. _Commands: http://tmuxp.git-pull.com/cli.html
.. _libtmux: https://github.com/tmux-python/libtmux
.. _on the web: https://leanpub.com/the-tao-of-tmux/read
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://git-pull.com/support.html.
Project details
---------------
- tmux support: 1.8, 1.9a, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6
- python support: 2.7, >= 3.3, pypy, pypy3
- Source: https://github.com/tmux-python/tmuxp
- Docs: https://tmuxp.git-pull.com
- API: https://tmuxp.git-pull.com/api.html
- Changelog: https://tmuxp.git-pull.com/history.html
- 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
- License: `MIT`_.
.. _MIT: http://opensource.org/licenses/MIT
.. _developing and testing: http://tmuxp.git-pull.com/developing.html
.. _Amazon Kindle: http://amzn.to/2gPfRhC
.. |pypi| image:: https://img.shields.io/pypi/v/tmuxp.svg
:alt: Python Package
:target: http://badge.fury.io/py/tmuxp
.. |docs| image:: https://github.com/tmux-python/tmuxp/workflows/Publish%20Docs/badge.svg
:alt: Docs
:target: https://github.com/tmux-python/tmuxp/actions?query=workflow%3A"Publish+Docs"
.. |build-status| image:: https://github.com/tmux-python/tmuxp/workflows/tests/badge.svg
:alt: Build status
:target: https://github.com/tmux-python/tmuxp/actions?query=workflow%3A"tests"
.. |coverage| image:: https://codecov.io/gh/tmux-python/tmuxp/branch/master/graph/badge.svg
:alt: Code Coverage
:target: https://codecov.io/gh/tmux-python/tmuxp
.. |license| image:: https://img.shields.io/github/license/tmux-python/tmuxp.svg
:alt: License
|pypi| |docs| |build-status| |coverage| |license|
**We need help!** tmuxp is a trusted session manager for tmux. If you
could lend your time to helping answer issues and QA pull requests, please
do! See `issue #290 <https://github.com/tmux-python/tmuxp/issues/290>`__!
**New to tmux?** `The Tao of tmux <https://leanpub.com/the-tao-of-tmux>`_ is
available on Leanpub and `Amazon Kindle`_. Read and browse the book for free
`on the web`_.
Installation
------------
.. code-block:: shell
Projects with *.tmuxp.yaml* or *.tmuxp.json* load via directory:
.. code-block:: sh
Name a session:
.. code-block:: bash
- ``
- ``
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.
.. code-block:: shell
(Pdb) session
Session(
(Pdb) window.name
'your_window'
(Pdb) window.panes
[Pane(%6 Window(@3 1:your_window, Session(
Python 3.7+ supports `PEP 553`_ ``breakpoint()`` (including
``PYTHONBREAKPOINT``). Also supports direct commands via ``-c``:
.. code-block:: shell
MY_WINDOW
Read more on `tmuxp shell`_ in the CLI docs.
.. _PEP 553: https://www.python.org/dev/peps/pep-0553/
.. _tmuxp shell: https://tmuxp.git-pull.com/cli.html#shell
Pre-load hook
-------------
Run custom startup scripts (such as installing project dependencies before
loading tmux. See the `bootstrap_env.py`_ and `before_script`_ example
Load in detached state
----------------------
You can also load sessions in the background by passing ``-d`` flag
Screenshot
----------
.. image:: https://raw.github.com/tmux-python/tmuxp/master/doc/_static/tmuxp-demo.gif
:scale: 100%
:width: 45%
:align: center
Freeze a tmux session
---------------------
Snapshot your tmux layout, pane paths, and window/session names.
.. code-block:: sh
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.
.. code-block:: sh
Debugging Helpers
-----------------
The ``load`` command provides a way to log output to a log file for debugging
purposes.
.. code-block:: sh
------------------
environment:
system: Linux
arch: x86_64
# ... so on
Docs / Reading material
-----------------------
See the `Quickstart`_.
`Documentation`_ homepage (also in `中文`_)
Want to learn more about tmux itself? `Read The Tao of Tmux online`_.
.. _Documentation: http://tmuxp.git-pull.com
.. _Source: https://github.com/tmux-python/tmuxp
.. _中文: http://tmuxp-zh.rtfd.org/
.. _before_script: http://tmuxp.git-pull.com/examples.html#bootstrap-project-before-launch
.. _virtualenv: https://virtualenv.git-pull.com/
.. _Read The Tao of tmux online: http://tmuxp.git-pull.com/about_tmux.html
.. _author's tmuxp configs: https://github.com/tony/tmuxp-config
.. _python library: https://tmuxp.git-pull.com/api.html
.. _python API quickstart: https://tmuxp.git-pull.com/quickstart_python.html
.. _tmux(1): http://tmux.sourceforge.net/
.. _tmuxinator: https://github.com/aziz/tmuxinator
.. _teamocil: https://github.com/remiprev/teamocil
.. _Examples: http://tmuxp.git-pull.com/examples.html
.. _freezing tmux: http://tmuxp.git-pull.com/cli.html#freeze-sessions
.. _bootstrap_env.py: https://github.com/tmux-python/tmuxp/blob/master/bootstrap_env.py
.. _testing: http://tmuxp.git-pull.com/developing.html#test-runner
.. _python objects: http://tmuxp.git-pull.com/api.html#api
.. _tmuxp.yaml: https://github.com/tmux-python/tmuxp/blob/master/.tmuxp.yaml
.. _simple: http://tmuxp.git-pull.com/examples.html#short-hand-inline
.. _very elaborate: http://tmuxp.git-pull.com/examples.html#super-advanced-dev-environment
.. _Quickstart: http://tmuxp.git-pull.com/quickstart.html
.. _Commands: http://tmuxp.git-pull.com/cli.html
.. _libtmux: https://github.com/tmux-python/libtmux
.. _on the web: https://leanpub.com/the-tao-of-tmux/read
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://git-pull.com/support.html.
Project details
---------------
- tmux support: 1.8, 1.9a, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6
- python support: 2.7, >= 3.3, pypy, pypy3
- Source: https://github.com/tmux-python/tmuxp
- Docs: https://tmuxp.git-pull.com
- API: https://tmuxp.git-pull.com/api.html
- Changelog: https://tmuxp.git-pull.com/history.html
- 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
- License: `MIT`_.
.. _MIT: http://opensource.org/licenses/MIT
.. _developing and testing: http://tmuxp.git-pull.com/developing.html
.. _Amazon Kindle: http://amzn.to/2gPfRhC
.. |pypi| image:: https://img.shields.io/pypi/v/tmuxp.svg
:alt: Python Package
:target: http://badge.fury.io/py/tmuxp
.. |docs| image:: https://github.com/tmux-python/tmuxp/workflows/Publish%20Docs/badge.svg
:alt: Docs
:target: https://github.com/tmux-python/tmuxp/actions?query=workflow%3A"Publish+Docs"
.. |build-status| image:: https://github.com/tmux-python/tmuxp/workflows/tests/badge.svg
:alt: Build status
:target: https://github.com/tmux-python/tmuxp/actions?query=workflow%3A"tests"
.. |coverage| image:: https://codecov.io/gh/tmux-python/tmuxp/branch/master/graph/badge.svg
:alt: Code Coverage
:target: https://codecov.io/gh/tmux-python/tmuxp
.. |license| image:: https://img.shields.io/github/license/tmux-python/tmuxp.svg
:alt: License
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tony Narlock
- Tags tmuxp
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
File details
Details for the file tmuxp-1.6.5.tar.gz
.
File metadata
- Download URL: tmuxp-1.6.5.tar.gz
- Upload date:
- Size: 82.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d3c09c515fd57d02a239829d63676e151243f5793aa938d7b6b170dc78fe1b |
|
MD5 | 032850178333b7e31db91cb4a4a92652 |
|
BLAKE2b-256 | 8a37906a17d610657ed000b43739c25174397e30b0bf5d7a756323929f85f21c |
File details
Details for the file tmuxp-1.6.5-py3-none-any.whl
.
File metadata
- Download URL: tmuxp-1.6.5-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ff802e9519280fa9895508ef24776effad9577a2b55de4cc407805626db50f |
|
MD5 | 3dbfe0c8cb61a63d726f0ded2c79adde |
|
BLAKE2b-256 | 0682159e9d7159e95e508d2d9d8fd1863ce59e79010c4c71d846c5e4006c13b0 |