Skip to main content

A process monitor in your terminal title

Project description

Toptle 🐢

A transparent process monitor that displays real-time resource stats in your terminal title.

Your terminal title shows: ORIGINAL_TITLE 🐢5.2% CPU, 45.1MB RAM🐢

Installation

Via Nix flake:

nix profile install github:YPares/toptle
# or run directly:
nix run github:YPares/toptle -- <command>

From source:

git clone https://github.com/YPares/toptle.git && cd toptle
pip install -e .

Usage

toptle [OPTIONS] [--] COMMAND [ARGS...]

Options:

  • --refresh, -r - Update interval in seconds (default: 2.0)
  • --metrics, -m - Display: cpu,ram,disk,files,threads,procs,all (default: cpu,ram)
  • --pty, -p - PTY mode for edge cases

Examples:

toptle python -m http.server 8000  # Basic usage
toptle -r 0.5 make -j4             # Faster updates  
toptle -m all ./build-script.sh    # All metrics
toptle --pty special-app           # PTY mode if needed

Features

  • Customizable metrics - CPU, RAM, disk I/O, file descriptors, threads, process count
  • Process tree monitoring - Tracks parent and all child processes
  • Title interception - Captures and combines with app titles (requires --pty)

Modes

  • Default: Direct mode - zero overhead but will ignore title sequence(s) sent by application
  • --pty: PTY mode - full title interception. Might also be needed by certain apps to work properly

Limitations

  • Title display depends on terminal emulator support for ANSI escape sequences
  • Process tree detection may miss processes that detach from the parent

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

toptle-0.1.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toptle-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file toptle-0.1.1.tar.gz.

File metadata

  • Download URL: toptle-0.1.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for toptle-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ede3487ba82779cc90bc8cedc1ddb8bec35d69bc8e21e23fdf4d49139f2adcb2
MD5 cac524a2bd0391899bab5cca4b28f154
BLAKE2b-256 7504cb9a6fa8bf04af6c82d157e956a4c673f29e03ff593b5cebaa4b92c269cb

See more details on using hashes here.

File details

Details for the file toptle-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: toptle-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for toptle-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc8e91b329c02cda25cfa68af9a77f2feb04f17a04313756081a2805a8d518e8
MD5 07094aef5dd685dc47126f9df1c8d4fa
BLAKE2b-256 aa39fb36bf783b5d1b6511e3e5e8ef0d6e2bd07b1099b1c32cc5b2bae3767e3a

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