Nobody has recommended prompt_toolkit (TUI only) yet, so here I go: https://python-prompt-toolkit.readthedocs.io/en/master/ I'm working on an interface for an LLM (large language model), and prompt_toolkit seems to be the only library with enough text-buffer features for me to implement everything I want. It's quite imperative-feeling though. Have to keep references to individual widgets if you want to do anything wi…
+1 for prompt_toolkit. Good and approachable docs as well.
For me the docs were barely enough to get started, and completely left out some of the features I'm using (such as the `get_line_prefix` callback); it took me a lot of messing around to figure out how to do what I wanted.
But it was probably worth it, I'd say.