v1.3.0
Introducing TUI Mode for Enhanced Usability
New Features & Improvements
- TUI Mode: Ananta now supports Text User Interface (TUI) mode, transforming the application into a full-screen, text-based interface for streamlined command execution.
- Persistent Connections: Commands sent in TUI mode benefit from reduced latency, as connections remain active between executions.
- Enhanced Output Handling: TUI mode offers separate output capabilities similar to non-TUI mode. However, it requires significant resources—avoid processing large datasets in this mode for optimal performance.
Performance Enhancements
- Improved command execution efficiency in TUI mode.
- Reduced latency in subsequent commands by maintaining connections.
Known Issues & Recommendations
- The separate output mode in TUI can be resource-intensive. Large data sets may lead to high memory usage—users should process data accordingly.
Upgrade to the latest version and experience the new, powerful TUI mode for a more interactive and efficient workflow!
Tests
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.4.0, pluggy-1.6.0
rootdir: /home/cwt/Projects/ananta
configfile: pyproject.toml
plugins: asyncio-0.26.0, cov-6.1.1
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collected 107 items
tests/test_ananta.py ........ [ 7%]
tests/test_ananta_async.py .... [ 11%]
tests/test_config.py ..................... [ 30%]
tests/test_output.py ..................... [ 50%]
tests/test_ssh_helpers.py . [ 51%]
tests/test_ssh_helpers_async.py .......... [ 60%]
tests/test_tui.py ................ [ 75%]
tests/test_tui_ansi.py .................... [ 94%]
tests/test_tui_extra.py ...... [100%]
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.12.8-final-0 ________________
Name Stmts Miss Cover Missing
------------------------------------------------------
ananta/__init__.py 10 0 100%
ananta/ananta.py 79 14 82% 224-247, 253-255, 282
ananta/config.py 113 20 82% 10-13, 56-64, 77-81, 128-129, 196-200, 215, 222-226
ananta/output.py 54 0 100%
ananta/ssh.py 83 42 49% 97-103, 113-131, 142-165, 183-208
ananta/tui/__init__.py 300 49 84% 222, 224, 250-252, 259, 270-272, 283, 320-334, 343, 370-373, 383-384, 394,
411-413, 452, 457, 461, 467-468, 527-530, 559-560, 564-565, 572, 582, 598-602
ananta/tui/ansi.py 158 18 89% 66, 104-105, 120, 134, 145-147, 158-160, 239-240, 276-283
------------------------------------------------------
TOTAL 797 143 82%
============================= 107 passed in 1.21s ==============================