[HN Gopher] Textual: a Python text user interface with Rich as t...
___________________________________________________________________
Textual: a Python text user interface with Rich as the renderer
Author : trueduke
Score : 102 points
Date : 2021-06-16 07:57 UTC (1 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| w0m wrote:
| My goal is to rewrite all our internal flask apps in this (or
| something similar)
| IncRnd wrote:
| This looks great. If testing it works out, then using it will be
| very helpful for me. Thank you!
| tbabej wrote:
| It's great to see some more competitors on the TUI front of the
| Python ecosystem! I recently tried multiple existing frameworks
| and was not particularly happy with the state.
|
| Here are the main contenders for libraries that provide higher-
| level API than urwid/ncurses:
|
| * Picotui, https://github.com/pfalcon/picotui
|
| * Npyscreen, https://github.com/npcole/npyscreen
|
| * py_cui, https://github.com/jwlodek/py_cui
|
| Both Picotui and Npyscreen are relatively unmaintained /
| considered feature-full. py_cui seems to be in the best shape.
|
| Fingers crossed for this project making it through, building on
| top of Rich gives it quite a bit of headstart. You can also
| sponsor @willmcgugan on Github [0].
|
| [0]: https://github.com/sponsors/willmcgugan
| BeFlatXIII wrote:
| Have you tried ASCIImatics?
| https://github.com/peterbrittain/asciimatics
|
| A project I'm considering would have something similar to the
| Django admin interface but a TUI with keyboard shortcuts like
| shift+F9 and I'd like a "pick one and stick with it"
| recommendation for a TUI toolkit. That said, if a TUI front end
| for Django admin tasks already exists and I've missed it, I'd
| love to just use that rather than starting from scratch.
| tbabej wrote:
| I did look into it, but its focus on animations gave me the
| perhaps unfair impression that the more mundane text UI
| elements (i.e. forms, etc.) would be a second-class citizen.
|
| Looked like a really great library to build a text adventure
| game with though!
| nexuist wrote:
| I took a brief glance at the syntax. Am I correct in thinking
| this is SwiftUI-like?
| willm wrote:
| It might be. But I've never used SwitftUI. I'm taking
| inspiration from web technologies and various GUI systems I've
| used.
| minimaxir wrote:
| Show HN for the base Rich renderer a year ago:
| https://news.ycombinator.com/item?id=23070821
|
| It's an impressive piece of software with a few surprises. (such
| as rendering to HTML)
| nneonneo wrote:
| This looks beautiful. I've already started using Rich in the REPL
| - it's definitely a nice little upgrade to get. The developer is
| very responsive and the project looks amazing.
| simonw wrote:
| I've been watching this evolve following Will on Twitter over the
| last few months - it's really exciting. I love how he's posting
| progress videos to the README too.
|
| The underlying library Rich is some of the best API design I've
| seen in ages, so I have very high expectations of Textual which
| it looks like it's easily going to meet.
| willm wrote:
| Cheers, Simon!
| mattbuilds wrote:
| I'm a huge fan of Rich. Can't wait to add Textual to the toolbox.
| edward wrote:
| I fixed a spelling mistake:
| https://github.com/willmcgugan/textual/pull/8
| sidlls wrote:
| Reminds me of old DOS-based C++ editors I used way back in
| undergrad. Borland C++ being one of these. Except smoother/nicer
| looking.
___________________________________________________________________
(page generated 2021-06-17 23:01 UTC)