News for hackers. Stuff that matters.
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.

There's already an app using Textual: [wtpython](https://github.com/what-the-python/wtpython)

Re:Show HN: Textual – An async-powered terminal application ... by guiambros on Sunday August 08, 2021 @02:26PM (#28108870)
I'm a big fan of Rich [1], thank you Will for creating it! Very impressive to see how much it evolved over the last year.

[1] https://github.com/willmcgugan/rich

Re:Show HN: Textual – An async-powered terminal application ... by willm on Monday August 09, 2021 @03:14AM (#28113513)
Cheers!
Re:Show HN: Textual – An async-powered terminal application ... by noloblo on Sunday August 08, 2021 @06:36PM (#28110813)
Exactly what I have been looking for
Re:Show HN: Textual – An async-powered terminal application ... by noloblo on Sunday August 08, 2021 @06:38PM (#28110835)
Will are there examples of how to use textual with Rich ? Thanks
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.
Re:Show HN: Textual – An async-powered terminal application ... by noloblo on Sunday August 08, 2021 @06:37PM (#28110818)
Is it inspired by aiohttp or which web framework do you plan on using as inspiration for textual
Re:Show HN: Textual – An async-powered terminal application ... by willm on Monday August 09, 2021 @03:15AM (#28113520)
Ah, I haven't explained myself well there. It is inspired by JS web frameworks. Vue in particular.
Re:Show HN: Textual – An async-powered terminal application ... by fieu on Sunday August 08, 2021 @07:57PM (#28111329)
From what I can see textual is purely for the terminal. Nothing involving HTTP.
Re:Show HN: Textual – An async-powered terminal application ... by fieu on Sunday August 08, 2021 @07:59PM (#28111353)
Didn't realize it says "inspired by modern web development". Nevermind.