Re:Show HN: Textual – An async-powered terminal application ...
by willm on Sunday August 08, 2021 @09:02AM
(#28106390)
I'm the author of Rich, a Python library for fancy formatting in the terminal. Textual is a framework I'm building around Rich for creating terminal applications. It's powered by async and borrows a number of techniques from web development.
It's still in active development, but it has reached a point where you can play with it. The most recent release adds a tree control which you can use to navigate a directory and pick files.
My hope is that a Textual UI will be at-least as easy to write as a command line interface, and projects will grow a --tui switch to launch an interactive app.
Re:Show HN: Textual – An async-powered terminal application ...
by willm on Monday August 09, 2021 @03:19AM
(#28113535)
It would be the other way around. Basically anything that Rich can print can be used in Textual. Have a look at the render method in the examples, which returns a Rich object.
It's still in active development, but it has reached a point where you can play with it. The most recent release adds a tree control which you can use to navigate a directory and pick files.
My hope is that a Textual UI will be at-least as easy to write as a command line interface, and projects will grow a --tui switch to launch an interactive app.
There's already an app using Textual: [wtpython](https://github.com/what-the-python/wtpython)
[1] https://github.com/willmcgugan/rich