4 ms·
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
by zie 9y 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 https://www.youtube.com/watch?v=hJhZhLg3obk
[1] https://bpython-interpreter.org/ https://bpython-interpreter.org/
- d0mine 9y agoPython prompt toolkit is worth a look https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/README.rst https://github.com/jonathanslenders/python-prompt-toolkit/bl...
- git-pull 9y agoYes good on you for mentioning that, as well as the other projects in the umbrella: - pymux (tmux clone): https://github.com/jonathanslenders/pymux/ https://github.com/jonathanslenders/pymux/ - pyvim (vim clone): https://github.com/jonathanslenders/pyvim/ https://github.com/jonathanslenders/pyvim/ Lots of community-driven CLI tools with superb autocompletion: - ptpython: http://github.com/jonathanslenders/ptpython/ http://github.com/jonathanslenders/ptpython/ - pgcli: http://pgcli.com/ http://pgcli.com/ + mycli: http://mycli.net/ http://mycli.net/ - complete shells: xonsh (http://xon.sh/ http://xon.sh/) + ergonomica (https://ergonomica.github.io/ https://ergonomica.github.io/)
- zie 9y agoThe 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.
- ericfrederich 9y agoclick is another package that implements a lot of these things. http://click.pocoo.org/6/ http://click.pocoo.org/6/