Metadata-Version: 2.4
Name: whichport
Version: 0.1.0
Summary: Inspect which processes are using ports
Author: ponponon
License: MIT
Project-URL: Homepage, https://github.com/ponponon/whichport
Project-URL: Repository, https://github.com/ponponon/whichport
Project-URL: Issues, https://github.com/ponponon/whichport/issues
Keywords: ports,pid,cli,psutil
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: System :: Networking
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: psutil>=5.9
Requires-Dist: rich>=13.0
Dynamic: license-file

# whichport

`whichport` 是一个命令行工具，用来快速排查端口占用问题。

它可以做三类事情：

1. 根据端口号查是谁占用了这个端口
2. 根据 PID 查这个进程占用了哪些端口
3. 根据进程关键字查命令行里包含这个关键字的进程以及对应端口

## 安装

```bash
pip install whichport
```

## 用法

```bash
whichport 8800
whichport python
```

## 输出

结果会以表格形式显示，包含命中来源、PID、进程名、命令行、协议和端口等信息。

如果没有找到匹配项，工具会输出一条简短提示。
