/3 Improving Readability & Engagement – The Rich Library Integration (Solidsight v5, v6, & v7)

IsaIsa
1 min read

Motivation for Change

Although Solidsight was becoming powerful, its plain text outputs lacked readability. To address this, I integrated the Rich library, significantly enhancing the visual appeal and clarity of the command-line interface.


Implementing Rich

Rich transformed simple outputs into coloured, visually structured messages and tables:

pythonCopyEditfrom rich.console import Console
console = Console()

console.print("[bold green]Analysis Complete![/bold green]")

Errors and Compatibility Issues

Initially, Rich caused display anomalies in certain terminals. Compatibility across different terminal emulators required additional tweaking.


Reflections

Adding Rich significantly improved user interaction, facilitating clearer communication of results and easier debugging during development.

We will stop here, and I’ll see you on the next one.

pxng0lin.

0
Subscribe to my newsletter

Read articles from Isa directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Isa
Isa

Former analyst with expertise in data, forecasting, and resource modeling, transitioned to cybersecurity over the past 4 years (as of May 2024). Passionate about security and problem-solving, utilising skills in data and analysis, for cybersecurity challenges. Experience: Extensive background in data analytics, forecasting, and predictive modelling. Experience with platforms like Bugcrowd, Intigriti, and HackerOne. Transitioned to Web3 cybersecurity with Immunefi, exploring smart contract vulnerabilities. Spoken languages: English (Native, British), Arabic (Fus-ha)