Metadata-Version: 2.4
Name: ipdisp
Version: 1.2.0
Summary: 跨平台 IP 地址查询工具
Author: frank
License: MIT
Keywords: ip,network,dns,cli
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Dynamic: license-file

# ipdisp

跨平台 IP 地址查询工具，支持本地 IP、公网 IP、IP 归属地查询、DNS 检测、网络连通性、域名解析等功能。

## 功能特性

- 📍 本地 IP - 获取本机 IPv4/IPv6 地址
- 🌐 公网 IP - 查询出口公网 IP
- DNS 检测 - 并行检测多个 DNS 服务器可用性
- 🔗 网络连通性 - 检测主流网站可达性
- 🔍 域名解析 - DNS 域名解析
- 📦 完整检测 - 一键检测所有网络状态

## 安装

### 方式1: 通过 pip 安装 (推荐)

```bash
pip install ipdisp
```

### 方式2: 升级到最新版本

```bash
pip install --upgrade ipdisp
```

### 方式3: 本地开发安装

```bash
# 克隆仓库
git clone https://github.com/yourusername/ipdisp.git
cd ipdisp

# 安装依赖
pip install -e .

# 或使用 uv 安装
uv pip install -e .
```

## 使用

```bash
# 查看本地IP (IPv4/IPv6)
ipdisp local
ipdisp local --json

# 查看公网IP
ipdisp public
ipdisp public --json

# 检测DNS服务器 (并行检测，速度更快)
ipdisp dns
ipdisp dns --json

# 检测网络连通性
ipdisp connect
ipdisp connect --json

# 域名解析
ipdisp resolve github.com
ipdisp resolve baidu.com --json

# 完整检测 (检测所有网络状态)
ipdisp all
ipdisp all --json
```

## 选项

| 选项 | 说明 |
|------|------|
| `-j, --json` | JSON 格式输出 |
| `-v, --version` | 查看版本 |
| `-h, --help` | 查看帮助 |

## 依赖

- Python 3.8+
- requests >= 2.28.0

## 平台支持

- ✅ macOS
- ✅ Linux
- ✅ Windows

## LICENSE

MIT License
