by BiteCode_dev · 3y ago · 0 comments
- install ipython and rich
- set PYTHONSTARTUP to auto load whatever you like on start up
- call rich.pretty.install() in your startup script for a boosted repr()
- set %autocall to 1 to benefit from optional parentheses
- use ! to call shell commands
This covers most people needs for a non-custom REPL.
Still no reload() though, but python really doesn't like that.
But I just couldn't find much about small projects that enable quick custom command repl building. Either the package is enormous and a swiss army knife or they cater to a specific language (e.g. SQL). I'd like this package to be a small building stone for custom command cli of any kind.