home.social

#rich — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rich, aggregated by home.social.

  1. Rich's Prompt/Confirm handle CLI validation and re-prompt loops, and password=True uses getpass to disable echo so credentials never hit the screen or history. #python #cli #rich valtersit.com/vault/interactiv

  2. Keep CLI spinners off the event loop: rich.status.Status animates from its own thread, so asyncio tasks and subprocess security scans run unblocked. Under 300 chars with URL. #python #asyncio #rich valtersit.com/vault/nonblockin

  3. Visualize RBAC trees with secret masking in Python using rich.tree.Tree. Recursive nodes, unicode branches, clean terminal output. #python #rbac #rich valtersit.com/vault/visualizin

  4. Render CVE assessment reports as terminal tables with Rich. Dynamic column widths and line wrapping keep output readable on narrow screens. #python #rich #security valtersit.com/vault/cve-vulner

  5. Rich tracebacks show local vars, but secrets leak into stderr. Hook sys.excepthook, mask sensitive keys before rendering. Here's a handler for DevSecOps scripts: #python #devsecops #rich valtersit.com/vault/rich-trace

  6. Tail logs with live syntax highlighting using rich.syntax—Pygments lexing turns JSON, YAML and syslog streams into ANSI-colored line tokens as data arrives. #python #rich #logging valtersit.com/vault/streaming-

  7. Inspect live Python objects at runtime with rich.inspect: attrs, signatures, docstrings, annotations, rendered to your terminal. Handy for DevSecOps audits. #python #security #rich valtersit.com/vault/runtime-se

  8. Build a real-time terminal infra dashboard with rich.layout and rich.live: flexbox-like grid, async redraw loop, double-buffered ANSI updates, no flicker. #python #rich #tui valtersit.com/vault/realtime-t

Share on Mastodon

Enter the server where you have an account.