Ever since I discovered the project, I have been wondering if I could wire it up with something like Pyodide to have a Python based interface that could work on the terminal or the browser.
ps: I didn't follow the latest changes, how is the keybinding aspect ? do you have single keypresses ? or key-sequences ? or even chords ? As an emacs-er I like to have semi-complicated custom keybindings. Anyway just asking, not a ticket :)
I just wanted to say that rich is a great tool that I'm very appreciative of, and __rich_repr__ is a godsend for debugging datasets without vomiting an overload of text into my terminal. Or consolidating spark's awful, multi-language stack traces. Excellent work. Textual is a lot of fun too, and I've been looking forward to this update. Thank you!
I use __rich_repr__ to make object representations more succinct[1].
This can also be used to make pretty custom exceptions. You can also use rich.Console.print_exception to output formatted stack traces, with options for including locals, suppressing certain errors, or limiting frames[2]. Pretty great for spark, which usually vomits a novella upon erring.
Also, %load_ext rich in a IPython shell to pretty print all output, exceptions or not.
[1]: https://rich.readthedocs.io/en/stable/pretty.html#rich-repr-...
[2]: https://rich.readthedocs.io/en/stable/reference/console.html...
I did a Show HN back in August 21: https://news.ycombinator.com/item?id=28106389
At the time, it was purely a hobby project, but a lot has happened since then. I was VC funded (nobody was more surprised than me) and since January, Textual has been my full-time gig.
This version adds a CSS renderer and more powerful layout engine, which enables some really interesting features such as live editing.
We've also added a websockets based console app for logging, which restores print style debugging when testing your TUI.
This release has documentation. Which you can find here:
https://textual.textualize.io/
Github repository:
https://github.com/Textualize/textual
Textual is still very much a work in progress, but it is way more stable now.
Textualize (the company) is currently 3 developers based in Edinburgh, Scotland. We recently hired dev no.3 and we have a fourth starting this year.