3 ms·
Very nice. Two other great python libraries for cli display are: 1 tabulate: helps render ASCII tables in various formats (https://github.com/astanin/python-ta
by nyellin 5y ago
Very nice. Two other great python libraries for cli display are:
1 tabulate: helps render ASCII tables in various formats (https://github.com/astanin/python-tabulate https://github.com/astanin/python-tabulate)
2. typer: write cli commands by decorating python functions. It uses type annotations to automatically parse input (https://typer.tiangolo.com/ https://typer.tiangolo.com/)
We're using both of those in our Kubernetes troubleshooting tool (https://robusta.dev https://robusta.dev). Going to look at adding Rich too
- qorrect 5y agoI've found https://github.com/salt-die/nurses_2 https://github.com/salt-die/nurses_2 recently , if you're looking for more graphics in the console.
- nyellin 5y agoThanks, looks cool and I wasnt familiar with it. We're actually sending data to both terminal and non terminal destinations like Slack/MsTeams. We render to html or markdown when we can, but sometimes we have to fall back to ASCII. If you're curious, you can see the way we're using tabulate here: https://docs.robusta.dev/master/developer-guide/actions/findings-api.html https://docs.robusta.dev/master/developer-guide/actions/find...