{"id":27015,"library":"glances","title":"Glances","description":"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.","status":"active","version":"4.5.4","language":"python","source_language":"en","source_url":"https://github.com/nicolargo/glances","tags":["monitoring","curses","system-information","cross-platform","performance"],"install":[{"cmd":"pip install glances","lang":"bash","label":"Install with pip"},{"cmd":"pip install glances[all]","lang":"bash","label":"Install with all plugins/deps"}],"dependencies":[{"reason":"Core system statistics","package":"psutil","optional":false},{"reason":"Network interface information (replaces netifaces in v4.3.1+)","package":"netifaces-plus","optional":false},{"reason":"Docker container monitoring","package":"docker","optional":true},{"reason":"SNMP support","package":"pysnmp","optional":true},{"reason":"InfluxDB export (v1/v2)","package":"influxdb","optional":true},{"reason":"InfluxDB 3 export (v4.3.2+)","package":"influxdb-client","optional":true}],"imports":[{"wrong":"from glances import Glances","symbol":"GlancesMain","correct":"from glances import GlancesMain"},{"symbol":"Glances","correct":"from glances import GlancesMain"}],"quickstart":{"code":"from glances import Glances\n\n# Run Glances in standalone mode (non-blocking example)\nglances = Glances()\n# Start monitoring (blocking in CLI mode, or use config)\n# In library mode, you typically call glances.start()\nprint(\"Glances library loaded successfully\")\n","lang":"python","description":"Minimal example using the Glances library API (v4.4.0+). For system monitoring, use the command-line tool 'glances' directly."},"warnings":[{"fix":"Replace 'import glances' with 'from glances import Glances' and create a Glances instance.","message":"Python 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.","severity":"breaking","affected_versions":">=4.4.0"},{"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.","message":"Security: 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).","severity":"gotcha","affected_versions":">=4.0.0"},{"fix":"Update dependency to 'netifaces-plus' if you install plugins manually.","message":"The 'netifaces' dependency has been replaced by 'netifaces-plus' in v4.3.1. Old requirements.txt may break.","severity":"deprecated","affected_versions":">=4.3.1"},{"fix":"Run with 'glances -t' (text output) or 'glances -w' (web server) on systems without a TTY.","message":"On 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.10':33 '4.5.4':30 'activ':38 'approxim':35 'base':8 'comprehens':14 'contain':26 'cpu':20 'cross':4,46 'cross-platform':3,45 'curs':7,41 'curses-bas':6 'disk':22 'glanc':1 'includ':19 'inform':44 'mainten':39 'memori':21 'monitor':9,40 'network':23 'overview':15 'perform':48 'platform':5,47 'process':24 'provid':12 'python':32 'quarter':36 'releas':34 'resourc':18 'sensor':25 'support':31 'system':17,43 'system-inform':42 'tool':10 'version':29","created_at":"2026-05-01T17:44:04.752364+00:00","updated_at":"2026-05-01T17:44:04.752364+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"glances","cli_version":"Glances version:\t4.5.4","type":"library","homepage":"https://nicolargo.github.io/glances","github":"https://github.com/nicolargo/glances","docs":null,"changelog":null,"pypi":"https://pypi.org/project/glances/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}