Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

Feature request: Allow tailing a CSV #78

Open cool-RR opened 1 year ago

cool-RR commented 1 year ago

I want to load a CSV as a table, but as new lines are added, I want the table to automatically update. Is that possible?

harkabeeparolus commented 1 year ago

There is nothing built-in at the moment.

Most Unixes have a watch command (install with brew install watch on macOS) that you could use:

watch rich --csv foobar.csv

Otherwise, it is common to use tail -f or less +F to watch files as new lines are added. This will not work perfectly with CSV files of course, but it's better than nothing. See for example:

cool-RR commented 1 year ago

Thank you.

On Thu, Dec 15, 2022 at 9:18 AM traal @.***> wrote:

There is nothing built-in at the moment.

Most Unixes have a watch command that you could use:

watch rich --csv foobar.csv

Otherwise, it is common to use tail -f or less +F to watch files as new lines are added. This will not work perfectly with CSV files of course, but it's better than nothing. See for example:

— Reply to this email directly, view it on GitHub https://github.com/Textualize/rich-cli/issues/78#issuecomment-1352655212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN3ST3ZMD7MAZXXK4FNQDWNLA5RANCNFSM6AAAAAAS6UGFHA . You are receiving this because you authored the thread.Message ID: @.***>