Registry / observability / glances

glances

JSON →
library4.5.4pypypi✓ verified 87d ago

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 glances
INSTALL
IMPORT
SIG · GLANCES
G
glances
observabilitypythonv4.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GlancesMain
✓ from glances import GlancesMain
✗ from glances import Glances
Glances
✓ from glances import GlancesMain

Minimal example using the Glances library API (v4.4.0+). For system monitoring, use the command-line tool 'glances' directly.

from glances import Glances # Run Glances in standalone mode (non-blocking example) glances = Glances() # Start monitoring (blocking in CLI mode, or use config) # In library mode, you typically call glances.start() print("Glances library loaded successfully")
glances --version
Debug
Known issues
breakingPython API changed in v4.4.0: the old 'import glances' approach no longer works as a library. Use 'from glances import Glances' and instantiate the Glances class.
fix
Replace 'import glances' with 'from glances import Glances' and create a Glances instance.
affects: >=4.4.0
gotchaSecurity: Glances web server and REST API are unauthenticated by default. Starting v4.5.2, a warning is shown, but mitigation requires explicit configuration (e.g., use a reverse proxy with auth).
fix
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.
affects: >=4.0.0
deprecatedThe 'netifaces' dependency has been replaced by 'netifaces-plus' in v4.3.1. Old requirements.txt may break.
fix
Update dependency to 'netifaces-plus' if you install plugins manually.
affects: >=4.3.1
gotchaOn headless systems (no display), Glances may crash if curses fails to initialize. Use '-t' for a text-only output or run in web server mode.
fix
Run with 'glances -t' (text output) or 'glances -w' (web server) on systems without a TTY.
affects: all
Upgrade
Version history
4.5.4latest on PyPI · released Apr 19, 2026
Audit
Dependencies
psutilrequiredCore system statistics
netifaces-plusrequiredNetwork interface information (replaces netifaces in v4.3.1+)
dockeroptionalDocker container monitoring
pysnmpoptionalSNMP support
influxdboptionalInfluxDB export (v1/v2)
influxdb-clientoptionalInfluxDB 3 export (v4.3.2+)
Agent activity
22 hits · last 30 days
node
16
OpenAI (training)
2
Amazon
1
Resources
glances — pip install glances · libregistry