rich · the terminal toolbox
Screenshots
❯ rich notes.md Release 0.0.13 Interactive tapes, frames and a rich choose preview. Crate Version ──────────────────── rs-rich-ext 0.0.11 rs-rich-cli 0.0.13 ▌ Every frame in this recording is real output. • [x] frames with a cell diff • [ ] interactive components ❯
❯ rich orders.csv ┏━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┓ ┃ order ┃ customer ┃ total ┃ status ┃ ┡━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━┩ │ 1001 │ Ada Lovelace │ 129.00 │ shipped │ │ 1002 │ Grace Hopper │ 54.50 │ pending │ │ 1003 │ Alan Turing │ 310.25 │ shipped │ │ 1004 │ Edsger Dijkstra │ 12.99 │ refunded │ └───────┴─────────────────┴────────┴──────────┘ ❯
❯ rich fib.py from functools import cache @cache def fib(n: int) -> int: """The n-th Fibonacci number.""" return n if n < 2 else fib(n - 1) + fib(n - 2) print([fib(n) for n in range(10)]) ❯