3 ms·
As a side note, if you want an efficient python REPL and you don't need custom commands like offered in the project above, you can do the following: - install
by BiteCode_dev 4y ago
As a side note, if you want an efficient python REPL and you don't need custom commands like offered in the project above, you can do the following:
- 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.
- Aperocky 4y agoI was actually intending for it to be custom commands, since I think it would be hard to beat even the vanilla python repl if we are talking about writing python. 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.