GitHub / tmux-python / libtmux
⚙️ Python API / wrapper for tmux
JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmux-python%2Flibtmux
PURL: pkg:github/tmux-python/libtmux
Stars: 1,109
Forks: 112
Open issues: 86
License: mit
Language: Python
Size: 4.09 MB
Dependencies parsed at: Pending
Created at: over 9 years ago
Updated at: 4 days ago
Pushed at: 3 days ago
Last synced at: 2 days ago
Commit Stats
Commits: 1770
Authors: 40
Mean commits per author: 44.25
Development Distribution Score: 0.102
More commit stats: https://commits.ecosyste.ms/hosts/GitHub/repositories/tmux-python/libtmux
Topics: api, cli, library, python, python-3, terminal, tmux
v0.17.2 - `Server` deprecation updates
v0.17.2
Server: Deprecate _list_panes() and _update_panes()
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.17.1...v0.17.2
Download
v0.17.1 - Documentation fixes
v0.17.1
- Fix documentation for
Server - Deprecate
Server.children,Session.children,Window.children
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.17.0...v0.17.1
Download
v0.17.0 - API Overhaul
v0.17.0
API: Breaking changes (https://github.com/tmux-python/libtmux/pull/426)
-
Finding objects / relations
-
0.16 and below:
session._windows(),session.list_windows(), etc.0.17 and after:
session.windows -
0.16 and below:
session.find_where({'window_name': my_window})0.17 and after:
session.windows.get(window_name=my_window, default=None)-
If not found and not
default, raisesObjectDoesNotExist -
If multiple objects found, raises
MultipleObjectsReturned
-
-
0.16 and below:
session.where({'window_name': my_window})0.17 and after:
session.windows.filter(window_name=my_window)
-
-
Accessing attributes
-
0.16 and below:
window['id']0.17 and after:
window.id -
0.16 and below:
window.get('id')0.17 and after:
window.id -
0.16 and below:
window.get('id', None)0.17 and after:
getattr(window, 'id', None)
-
Improved server detection
- Server: Behavior when no server exists by @tony in https://github.com/tmux-python/libtmux/pull/448
The rest
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.16.1...v0.17.0
Download
v0.17.0a1 - API Overhaul
v0.17.0a1 Pre-release
API: Breaking changes (https://github.com/tmux-python/libtmux/pull/426)
-
Finding objects / relations
-
0.16 and below:
session._windows(),session.list_windows(), etc.0.17 and after:
session.windows -
0.16 and below:
session.find_where({'window_name': my_window})0.17 and after:
session.windows.get(window_name=my_window, default=None)-
If not found and not
default, raisesObjectDoesNotExist -
If multiple objects found, raises
MultipleObjectsReturned
-
-
0.16 and below:
session.where({'window_name': my_window})0.17 and after:
session.windows.filter(window_name=my_window)
-
-
Accessing attributes
-
0.16 and below:
window['id']0.17 and after:
window.id -
0.16 and below:
window.get('id')0.17 and after:
window.id -
0.16 and below:
window.get('id', None)0.17 and after:
getattr(window, 'id', None)
-
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.17.0a0...v0.17.0a1
Download
v0.17.0a0 - Only prelease before API overhaul
v0.17.0a0 Pre-release
What’s Changed
- Server: Behavior when no server exists by @tony in https://github.com/tmux-python/libtmux/pull/448
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.16.1...v0.17.0a0
Download
v0.16.1 - eliminate `packaging` dependnecy
v0.16.1
Fixes
- Vendorize
Versionby @tony in https://github.com/tmux-python/libtmux/pull/461
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.16.0...v0.16.1
Download
v0.16.0 - Improved environment support, fix `distutils` deprecation warning
v0.16.0
Features
- Feature: Allow setting up custom environment when creating windows and/or panes by @zappolowski in https://github.com/tmux-python/libtmux/pull/453
Breaking internal change
- Replacement for
distutils.version.LooseVersion, fix warning by @tony in https://github.com/tmux-python/libtmux/pull/351
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.15.10...v0.16.0
Download
v0.16.0a1 - Fix `distutils` warning
v0.16.0a1 Pre-release
What’s fixed (breaking)
- Replacement for
distutils.version.LooseVersion, fix warning by @tony in https://github.com/tmux-python/libtmux/pull/351
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.16.0a0...v0.16.0a1
Download
v0.16.0a0 - Environmental variable passthrough
v0.16.0a0 Pre-release
New feature
- Feature: allow setting up custom environment when creating windows and/or panes by @zappolowski in https://github.com/tmux-python/libtmux/pull/453
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.15.10...v0.16.0a0
Download
v0.15.10 - Maintenance only
v0.15.10
There will be more improvements over the coming weeks and months to shore up flakiness across shells and environments.
Test improvements
- fix(test_capture_pane): use of double
envby @zappolowski in https://github.com/tmux-python/libtmux/pull/452 - test(test_capture_pane): Remove bashism(s) in https://github.com/tmux-python/libtmux/pull/455
New Contributors
- @zappolowski made their first contribution in https://github.com/tmux-python/libtmux/pull/452
Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.15.9...v0.15.10
Download