How evansabraham/sysinfo works
sysinfo is a small Linux system-information CLI. The user invokes the CLI, which collects host details and presents them as human-readable output or JSON; the health option instead runs a Bash check and displays its output. Collection covers OS, kernel, CPU, memory, swap, disk, uptime, hostname, and Python details. The graph includes the separate presentation layer and documented health-check branch. Source excerpts show the CLI’s calls and collector interfaces; health-script internals were not sampled.
Main entry points: cli.py Command-line interface · health.sh Health check script · collectors.py System collectors · formatters.py Output formatters
Components 7
CLI workflow
- Command-line interface
src/sysinfo/cli.py
System collection
- System collectors
src/sysinfo/collectors.py
Output and health
- Output formatters
src/sysinfo/formatters.py - Health check script
src/sysinfo/health.sh
Other components
- User
- Linux host interfaces
- Health-check output
Connections 7
- User → Command-line interface: invokes
README.md - Linux host interfaces → System collectors: provides system data
src/sysinfo/collectors.py - Command-line interface → System collectors: collects information
src/sysinfo/cli.py - Command-line interface → Output formatters: formats output
src/sysinfo/cli.py - Command-line interface → Health check script: runs check
src/sysinfo/cli.py - Health check script → Health-check output: writes stdout
README.md - Command-line interface → User: displays results
README.md