Hacker News new | ask | show | jobs
by zie 3314 days ago
There was a talk at Pycon 2017 about this [0] that's pretty good. He(amjith) goes through several examples with his favorite being bpython [1] and even covers writing such a thing in python live on stage.

[0] https://www.youtube.com/watch?v=hJhZhLg3obk [1] https://bpython-interpreter.org/

2 comments

click is another package that implements a lot of these things.

http://click.pocoo.org/6/

Yes good on you for mentioning that, as well as the other projects in the umbrella:

- pymux (tmux clone): https://github.com/jonathanslenders/pymux/

- pyvim (vim clone): https://github.com/jonathanslenders/pyvim/

Lots of community-driven CLI tools with superb autocompletion:

- ptpython: http://github.com/jonathanslenders/ptpython/

- pgcli: http://pgcli.com/ + mycli: http://mycli.net/

- complete shells: xonsh (http://xon.sh/) + ergonomica (https://ergonomica.github.io/)

The talk covers Prompt Toolkit. The presenter wrote pgcli and mycli, and covers most of your list as well. But it's probably good to list it all out here, for the lazy, or the ones unable/unwilling to play youtube.