A cross-platform curses-based monitoring tool that provides a comprehensive overview of system resources including CPU, memory, disk, network, processes, sensors, containers, and more. Version 4.5.4 supports Python >=3.10. Released approximately quarterly with active maintenance.
pip install glancesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example using the Glances library API (v4.4.0+). For system monitoring, use the command-line tool 'glances' directly.
Replace 'import glances' with 'from glances import Glances' and create a Glances instance.
Do not expose the web server to the internet without authentication. Use environment variables GLANCES_USERNAME and GLANCES_PASSWORD (or config file) to enable basic auth. For the REST API, disable it or restrict access.
Update dependency to 'netifaces-plus' if you install plugins manually.
Run with 'glances -t' (text output) or 'glances -w' (web server) on systems without a TTY.