From 9ed1b4c597607483774f2b1eb6512b2332c95265 Mon Sep 17 00:00:00 2001 From: engli Date: Mon, 20 Oct 2025 20:34:11 -0400 Subject: [PATCH] docs: add quick Windows demo and test instructions (attrs note) --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index e46a1e422..2ec5ea853 100644 --- a/README.md +++ b/README.md @@ -437,3 +437,27 @@ See also [Rich CLI](https://github.com/textualize/rich-cli) for a command line a See also Rich's sister project, [Textual](https://github.com/Textualize/textual), which you can use to build sophisticated User Interfaces in the terminal. ![textual-splash](https://github.com/user-attachments/assets/4caeb77e-48c0-4cf7-b14d-c53ded855ffd) + +### Quick Demo (Windows PowerShell) + +```powershell +python -m venv .venv +. .\.venv\Scripts\Activate.ps1 +pip install -U pip +pip install -e . +python - << "PY" +from rich import print +from rich.table import Table +print("[bold green]Rich works![/]") +t = Table(title="Sample Results"); t.add_column("Name"); t.add_column("Score", justify="right") +t.add_row("Alpha","92"); t.add_row("Beta","87"); t.add_row("Gamma","95") +print(t) +PY + +**“Run Tests (dev setup)”** +```md +### Run Tests (dev setup) + +```bash +pip install pytest attrs +pytest -q \ No newline at end of file