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

Uploaded Python 3

File details

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

File metadata

  • Download URL: psinfo-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d742f48b14582e222d9e272fe61b06f9645306bbcc05317f7503892fa8e0bf1f
MD5 41ceeb8904f9d9e19bab6ecc12d7f3ac
BLAKE2b-256 c0df0194b7e996c3a6857275aa60c215c15bda045f030aa2419242695e4cf626

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psinfo-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c0d138b4d56caa580e84bc89cbf078f67c7047ee59e7ebb3f4a443a9b25589f
MD5 8a75c3769cdb26123e00b388533659b4
BLAKE2b-256 17adb0847ef4cb7ccd97697a77fbb3cc4f98be3099627f6a9a02d8dcc81aff94

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