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%).
Tree view (-t)
Results are grouped by parent/child relationships. Parent nodes show their own CPU plus a ∑ total across the whole subtree.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff7e869d4edda1cf0b414c4c3021c4e7c157b0f6f9d50143c3e150a0c6c514b4
|
|
| MD5 |
f492c52c640204c624009316fcb19288
|
|
| BLAKE2b-256 |
ea3a585f36cf525c6031b343580c86e4fe7d62d70fa6fe427b92435accec3854
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e46d672612b08f41e2fee3cbd49b11b7f850d50db60a9128815dd3e0f83dc923
|
|
| MD5 |
ddbab575a4d0137efeaa8a3fe5da9bf3
|
|
| BLAKE2b-256 |
0efab58dcdd13e0419bf7a34c1445a274c7b647d79b2fdc321f7c741a4412aae
|