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.1.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psinfo-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ff7e869d4edda1cf0b414c4c3021c4e7c157b0f6f9d50143c3e150a0c6c514b4
MD5 f492c52c640204c624009316fcb19288
BLAKE2b-256 ea3a585f36cf525c6031b343580c86e4fe7d62d70fa6fe427b92435accec3854

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psinfo-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e46d672612b08f41e2fee3cbd49b11b7f850d50db60a9128815dd3e0f83dc923
MD5 ddbab575a4d0137efeaa8a3fe5da9bf3
BLAKE2b-256 0efab58dcdd13e0419bf7a34c1445a274c7b647d79b2fdc321f7c741a4412aae

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