Scripts2026年7月19日·1 分钟阅读

bpytop — Resource Monitor with Game-Inspired TUI

A Python-based terminal resource monitor featuring responsive charts, process management, and a visually rich interface inspired by classic game aesthetics.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
bpytop
直接安装命令
npx -y tokrepo@latest install 45362d43-830c-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

bpytop is a terminal-based resource monitor written in Python that displays CPU, memory, disk, network, and process information in a visually appealing, game-inspired interface. It is the Python rewrite of bashtop, offering improved performance and cross-platform support.

What bpytop Does

  • Displays real-time CPU usage per core with responsive graphs
  • Shows memory and swap utilization with visual bars
  • Monitors disk I/O and network bandwidth with historical charts
  • Provides an interactive process list with sorting, filtering, and signal sending
  • Supports multiple color themes and layout customization

Architecture Overview

bpytop is a single-file Python application that uses psutil for cross-platform system metrics collection. The TUI rendering is handled by a custom drawing engine that outputs ANSI escape sequences directly to the terminal. It runs a main loop that polls system stats at configurable intervals and redraws only changed regions for efficiency.

Self-Hosting & Configuration

  • Install via pip, Homebrew, apt, snap, or your distribution's package manager
  • Configuration file lives at ~/.config/bpytop/bpytop.conf
  • Customize update interval, color theme, and displayed sections in the config
  • Themes are stored in ~/.config/bpytop/themes/ as plain text files
  • Requires Python 3.6+ and psutil 5.7+

Key Features

  • Game-inspired visual design with smooth graph animations
  • Mouse support for clicking processes and navigating menus
  • Multiple sorting options for the process list (CPU, memory, PID, name)
  • Vi-style and Emacs-style keybindings
  • Minimal resource footprint compared to GUI monitors

Comparison with Similar Tools

  • btop++ — The C++ successor to bpytop with better performance; use btop if available
  • htop — Simpler and more traditional; bpytop adds visual graphs and disk/network panels
  • glances — Web UI and API export capabilities, but heavier and less visually focused
  • gotop — Similar aesthetic in Go; bpytop has broader OS support via psutil
  • bottom — Rust-based with similar features; faster but less colorful default theme

FAQ

Q: What is the difference between bpytop and btop++? A: btop++ is a C++ rewrite by the same author with better performance. bpytop is the Python version, easier to install but slightly slower.

Q: Does bpytop work on macOS? A: Yes, it supports macOS, Linux, and FreeBSD via psutil.

Q: Can I monitor remote machines? A: bpytop only monitors the local machine. For remote monitoring, consider combining it with SSH or using glances.

Q: How do I change the color theme? A: Press M in bpytop to open the menu, then select a theme, or edit the theme setting in bpytop.conf.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产