Skip to main content

Rich terminal process viewer

Project description

psinfo

A rich terminal process viewer. Search, filter, and watch running processes with colour-coded output.

psinfo is for when you have a specific question — "what's on port 8080", "how much memory is Chrome using across all its helpers", "is nginx running and what's it doing" — and want a clean answer without launching a full process manager or constructing a ps aux | grep | awk pipeline.

Install

pip install -e .
# or, to install as an isolated CLI tool:
pipx install .

pipx is recommended for CLI tools — it installs into an isolated environment and puts psinfo on your PATH. Install it with brew install pipx or pip install pipx.

Usage

psinfo <name>            search by process name or command
psinfo -u <username>     all processes owned by a user
psinfo -p <port>         process listening on a port
psinfo -P <pid>          single process by PID

Flags

Flag Short Description
--watch [N] -w Live refresh every N seconds (default: 2)
--sort cpu|mem -s Sort order (default: cpu)
--tree -t Group results by process tree hierarchy

Flags compose freely:

psinfo nginx -w
psinfo python -w 5 -s mem
psinfo slack -t -w

Output

Card view (default)

Each matching process is shown as a panel. The highest-CPU process gets a green border. Metrics are colour-coded: green (< 10%), orange (≥ 10%), red (≥ 50%).

Card view

Tree view (-t)

Results are grouped by parent/child relationships. Parent nodes show their own CPU plus a total across the whole subtree.

Tree view

Requirements

  • Python 3.9+
  • psutil >= 5.9
  • rich >= 13.0

Platform support

Platform Status Notes
macOS --port requires sudo
Linux
Windows Shows handles instead of file descriptors

License

MIT — see LICENSE.

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

psinfo-0.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

psinfo-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psinfo-0.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for psinfo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 69d6292ef3e334d8a46d94602fbbc8f2283cc8590adcf3a7d5511402aadfa1f4
MD5 95adfb9728626df3d25230984a52ef3f
BLAKE2b-256 3b9fb6fc1a9802eb477a8726e9834d2f616879822e67468bee0bd037d77e62c3

See more details on using hashes here.

File details

Details for the file psinfo-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: psinfo-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for psinfo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d59abf0be711fdfa7109e9cdf47f1d8dd54f185dcf6e859b02e7788dea30b2c5
MD5 43b0cecdd11227be05a9bc6911a05e6c
BLAKE2b-256 15c0ea67ce50257419742c8963670313f2d8c0d363f8fc934510ceefb45ff925

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