Skip to main content

A real-time network connection monitor with friendly service names

Project description

netshow · interactive, process-aware network monitoring for your terminal

Python versions Platform Code style: ruff Built with Textual uv



A quick plug for AI-Enhanced Docs

This README was crafted with AI assistance, and here's why that matters

As a solo developer building open source tools that may only ever serve my own needs, comprehensive documentation often wouldn't happen without AI help. Using agentic dev tools like Roo & Claude Code that understand the entire codebase, AI doesn't just regurgitate generic content - it extracts real implementation details and creates accurate, specific documentation.

In this case, Sonnet 4 took a pass & a human (me) verified them 6/28/25.

Features

🔍 Live TCP monitor Refreshes every 3 s (configurable) while preserving scroll position
👤 Human-friendly service names Shows Docker, Plex, VS Code, etc. instead of cryptic binaries
🔬 Deep process drill-down Path, PID, cmdline, cwd, threads, CPU %, memory %, open files, active connections
🖱️ Clickable / keyboard navigation Press or click a row for a dedicated detail screen; refresh pauses automatically
🔐 Runs privileged
or unprivileged
Uses psutil (root) for full fidelity, falls back to lsof if run as a regular user
📊 Real-time metrics Live connection counts, bandwidth monitoring with per-interface selection
🔍 Advanced filtering Regex-powered search with live filtering across all connection fields
🔄 Smart sorting Sort by status or process name with optimized rendering for large datasets
🎨 Modern Textual UI Smooth scrolling, dark theme, status bar with connection count & data source
⚡ Zero-pain install Powered by uv for lightning-fast dependency resolution

🚀 Quickstart

# uvx (easiest)
uvx netshow

# Local Builds
git clone git@github.com:taylorwilsdon/netshow.git
uv run netshow

💡 Tip: Without root/sudo, NetShow silently switches to lsof and still gives you most connections.


🛠️ Usage

netshow [--interval 1.0] [--no-colors]

Options

Option Description Default
--interval <sec> Refresh rate (float) 3.0
--no-colors Disable ANSI colors Off

Keybindings

Key / Mouse Action
↑ / ↓ Move cursor
↵ / Click Open detail view
Esc / ← Back to list
q Quit NetShow
Ctrl+C Force quit (hard quit)
Ctrl+R Force refresh
f Toggle filter input
/ Quick search (focus filter)
s Sort by connection status
p Sort by process name
i Cycle network interface for bandwidth monitoring

Advanced Features

🔍 Filtering & Search

  • Press f or / to open the filter input
  • Supports regex patterns for advanced matching
  • Filters across process names, addresses, and connection status
  • Live updates as you type (with debouncing)

📊 Bandwidth Monitoring

  • Real-time bandwidth display in the metrics bar
  • Press i to cycle through network interfaces (all, eth0, wlan0, etc.)
  • Accurate per-interface monitoring for multi-NIC hosts
  • Automatic fallback to global stats if interface unavailable

🔄 Smart Performance

  • Optimized table rendering for large connection sets (5k+ connections)
  • In-place cell updates to prevent flicker during sorting
  • Preserves scroll position and cursor during refreshes
  • Debounced filter input to avoid excessive updates

👩‍💻 Development

git clone https://github.com/taylorwilsdon/netshow.git
cd netshow
uv sync --extra dev

Quality Gates

pytest            # tests
ruff format .     # auto-format
ruff check .      # lint
mypy src/         # type check

📋 Requirements

• Python ≥ 3.9
• macOS or Linux
lsof (usually pre-installed)


🤝 Contributing

Pull requests and ⭐ stars are welcome! Found a bug or have a feature request? Please open an issue.


📜 License

MIT – see LICENSE for full text.

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

netshow-0.2.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

netshow-0.2.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file netshow-0.2.1.tar.gz.

File metadata

  • Download URL: netshow-0.2.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for netshow-0.2.1.tar.gz
Algorithm Hash digest
SHA256 640dfe434ce749fc9263d2fbc5a2b35b8142716db841244346e914834d95b829
MD5 9264ff8536d344c8778bd02381c9e59e
BLAKE2b-256 2d10c5ba8f757c87bdba2ae7777c914a874b3e84237125081cb2e1fe96dc70fe

See more details on using hashes here.

File details

Details for the file netshow-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: netshow-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for netshow-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26667f05b998471bf1cebf32c739c13bec669cce34aafeba2191312d0cea51b8
MD5 f2dcb83a000d68f128aa27c3d1e10234
BLAKE2b-256 6a93a0e0a1b6c24434b998876800414f448338f801593ac58fe64ec56e9a3ffb

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