Hacker News new | ask | show | jobs
by noshbrinken 3312 days ago
I think many/most Node TUI's use Inquirer. I have mixed feelings about it. Python has several library's that provide lower-level constructs for building CLI and TUI's. Then they provide examples for using the library to implement a common pattern or prompt. Inquirer gives you some ready-made prompts but doesn't provide any help/convenience for creating your own prompt. It seems like the wrong level of abstraction.
1 comments

Which python libraries do you prefer?

Inquirer is def the HTML inputs of the terminal but I got pretty far with it. My use case was Fairly Simpleā„¢ though. What other UI components do you think it's lacking?

I like python_prompt_toolkit, though I think the learning curve can be a bit steep. It gives you a ton of flexibility, which I really appreciate, but I have a hard time remembering how all the pieces interact. I hope I don't sound overly critical of people's open source work, because I've used and really appreciate both Inquirer and PPT. Just seems like there's yet to be a canonical library for this problem set.
It'd be really nice to see one in go or something else I could ship around easily w/o needing NPM and node, etc.

I'll give PPT a swing. I haven't used it before. Thanks!