Skip to main content

A web interface for monitoring NVIDIA GPUs

Project description

gpus

A web interface for monitoring NVIDIA GPU status, similar to nvidia-smi but with a clean, intuitive web interface featuring real-time updates and historical data visualization.

Features

  • Real-time monitoring of NVIDIA GPU statistics
  • Clean, modern, responsive web interface
  • Historical utilization graphs
  • Process monitoring
  • Command-line interface
  • Background server mode

Requirements

  • Python 3.6+
  • NVIDIA GPU with installed drivers
  • NVIDIA Management Library (NVML)

Installation

pip install gpus

Usage

Starting the Web Interface

# Start the web interface in the foreground (default port 5000)
gpus

# Specify a different port
gpus --port 8080
# or with the short option
gpus -P 8080

# Specify update interval (in seconds)
gpus --update-interval 2.0
# or with the short option
gpus -U 2.0

# Specify history length (in seconds)
gpus --history-length 600
# or with the short option
gpus -L 600

# Specify history resolution (in seconds)
gpus --history-resolution 1.0
# or with the short option
gpus -R 1.0

Then open your web browser and navigate to http://localhost:5000 (or the port you specified).

Managing Background Server

You can run the server in the background and manage it with subcommands:

# Start the server in the background
gpus start

# Check if the server is running
gpus status

# Stop the background server
gpus stop

The background server uses the same command-line options as the foreground server:

# Start the background server on a specific port
gpus -P 8080 start

Using as a Python Package

from gpus.app import GPUMonitorApp

# Create the application
app = GPUMonitorApp(
    update_interval=2.0,
    history_length=300,
    history_resolution=1.0
)

# Run the application
app.run(host='0.0.0.0', port=5000)

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/fakerybakery/gpus
cd gpus

# Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e .

License

MIT License Disclaimer: This was mostly a vibe-coded project. Use at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpus-0.1.2.tar.gz (16.0 kB view details)

Uploaded Source

File details

Details for the file gpus-0.1.2.tar.gz.

File metadata

  • Download URL: gpus-0.1.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for gpus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 661fd30c9e31ec331c9c5a333203d81361557582d501aced81d6f360b2b2bc43
MD5 d63ddd4a1a180efe334e47900d1bd257
BLAKE2b-256 1c33a271edcce49d66923080395e6623e3266064bd832e8c06bb70fab8c86917

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page