ip-check


Nameip-check JSON
Version 2.0.5 PyPI version JSON
download
home_pageNone
SummaryPowerful cdn network speed test utils.
upload_time2024-12-16 01:06:14
maintainerNone
docs_urlNone
authornobitaqaq
requires_python>=3.8
licenseNone
keywords cdn speed test network speed
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ip-check

高效的cdn 测速工具,用于ip 优选。

## 安装与部署

```shell
pip install -U ip-check
# 按需修改ip-check 程序配置文件
ip-check-cfg
# 按需修改igeo-cfg GEO 数据库配置文件
igeo-cfg
# 下载mmdb 数据库
igeo-dl
```

note: 下载mmdb 数据库可能会失败,可以手动下载mmdb 数据库到`ip-check --version` 所输出的路径

## 使用方法

```shell
ip-check -h
usage: ip-check [-h] [-w WHITE_LIST [WHITE_LIST ...]] [-b BLOCK_LIST [BLOCK_LIST ...]] [-pl PREFER_LOCS [PREFER_LOCS ...]]
                [-po PREFER_ORGS [PREFER_ORGS ...]] [-bo BLOCK_ORGS [BLOCK_ORGS ...]] [-pp PREFER_PORTS [PREFER_PORTS ...]] [-lv MAX_VT_IP_COUNT]
                [-lr MAX_RT_IP_COUNT] [-ls MAX_ST_IP_COUNT] [-lb MAX_BT_IP_COUNT] [-p PORT] [-H HOST] [-dr] [-dv] [-ds] [-o OUTPUT] [-f] [-s SPEED]
                [-as AVG_SPEED] [-r RTT] [-l LOSS] [-c CONFIG] [-v] [-ns] [--dry_run] [--version]
                source [source ...]

ip-check 参数

positional arguments:
  source                测试源文件

optional arguments:
  -h, --help            show this help message and exit
  -w WHITE_LIST [WHITE_LIST ...], --white_list WHITE_LIST [WHITE_LIST ...]
                        偏好ip参数, 格式为: expr1 expr2, 如8 9 会筛选8和9开头的ip
  -b BLOCK_LIST [BLOCK_LIST ...], --block_list BLOCK_LIST [BLOCK_LIST ...]
                        屏蔽ip参数, 格式为: expr1 expr2, 如8 9 会过滤8和9开头的ip
  -pl PREFER_LOCS [PREFER_LOCS ...], --prefer_locs PREFER_LOCS [PREFER_LOCS ...]
                        偏好国家地区选择, 格式为: expr1 expr2, 如hongkong japan 会筛选HongKong 和Japan 地区的ip
  -po PREFER_ORGS [PREFER_ORGS ...], --prefer_orgs PREFER_ORGS [PREFER_ORGS ...]
                        偏好org 选择, 格式为: expr1 expr2, 如org1 org2 会筛选org1, org2 的服务商ip
  -bo BLOCK_ORGS [BLOCK_ORGS ...], --block_orgs BLOCK_ORGS [BLOCK_ORGS ...]
                        屏蔽org 选择, 格式为: expr1 expr2, 如org1 org2 会过滤org1, org2 的服务商ip
  -pp PREFER_PORTS [PREFER_PORTS ...], --prefer_ports PREFER_PORTS [PREFER_PORTS ...]
                        针对ip:port 格式的测试源筛选端口, 格式为: expr1 expr2, 如443 8443 会筛选出443 和8443 端口的ip
  -lv MAX_VT_IP_COUNT, --max_vt_ip_count MAX_VT_IP_COUNT
                        最大用来检测有效(valid) ip数量限制
  -lr MAX_RT_IP_COUNT, --max_rt_ip_count MAX_RT_IP_COUNT
                        最大用来检测rtt ip数量限制
  -ls MAX_ST_IP_COUNT, --max_st_ip_count MAX_ST_IP_COUNT
                        最大用来检测下载(speed) 速度的ip数量限制
  -lb MAX_BT_IP_COUNT, --max_bt_ip_count MAX_BT_IP_COUNT
                        最大better ip的ip数量限制
  -p PORT, --port PORT  用来检测的端口
  -H HOST, --host HOST  可用性域名
  -dr, --disable_rt     是否禁用RTT 测试
  -dv, --disable_vt     是否禁用可用性测试
  -ds, --disable_st     是否禁用速度测试
  -o OUTPUT, --output OUTPUT
                        输出文件
  -f, --fast_check      是否执行快速测试
  -s SPEED, --speed SPEED
                        期望ip的最低网速 (kB/s)
  -as AVG_SPEED, --avg_speed AVG_SPEED
                        期望ip的最低平均网速 (kB/s)
  -r RTT, --rtt RTT     期望的最大rtt (ms)
  -l LOSS, --loss LOSS  期望的最大丢包率
  -c CONFIG, --config CONFIG
                        配置文件
  -v, --verbose         显示调试信息
  -ns, --no_save        是否忽略保存测速结果文件
  --dry_run             是否跳过所有测试
  -4, --only_v4         仅测试ipv4
  -6, --only_v6         仅测试ipv6
  --version             show program's version number and exit
```

## 配置文件

执行`ip-check-cfg` 会生成`config.ini`,  按照备注修改即可。

## 使用示例

```shell
# 文本参数,文本中内容支持ip、ip cidr、支持ipv6、支持ip:port 表达式
ip-check test.txt

# ip 参数,支持ip、ip cidr、支持ipv6、支持ip:port 表达式
ip-check 192.168.1.1/32
ip-check fe80::/ 10
ip-check 1.1.1.1:443

# 禁用可用性测试,某些情况可用性测试失效,可临时禁用。
ip-check test.txt -dv
# 禁用rtt 测试,某些情况rtt 测试失效,可临时禁用。
ip-check test.txt -dr

# ip 偏好,假设你偏好8和9 开头的ip
ip-check test.txt -w "8" "9"
# ip 偏好,假设你喜欢8.222和8.223 开头的ip
ip-check test.txt -w "8.222" "8.223"
# ip 厌恶,假设你不喜欢13和14 开头的ip
ip-check test.txt -b "13" "14"
# ip 厌恶,假设你不喜欢131.13和131.14 开头的ip
ip-check test.txt -b "131.13" "131.14"
# 按地区筛选ip
ip-check test.txt -pl "japan" "hongkong"
# ip:port 格式的测试源只测试端口为8443 的测试源
ip-check 7.8.9.10:443 7.8.9.10:8443 -pp 8443

# 指定测试端口,缺省为443
ip-check test.txt -p 8443

# 指定输出文件,默认为result 与源文件的拼接
ip-check test.txt -o better-ips.txt


# 限制参与可用性测试ip 的数量
ip-check test.txt -lv 100
# 限制参与rtt 测试ip 的数量
ip-check test.txt -lr 100
# 限制参与下载速度测试的ip 的数量
ip-check test.txt -ls 100

# 快速测试, 开启此选项后,当到达测试时长一半下载时间后,最高网速仍未达到期网网速的一半则退出此ip 下载测速
ip-check test.txt -f

# 指定期网网速,单位 kB/s
ip-check test.txt -s 20000

# 指定期望的最大rtt, 单位 ms
ip-check test.txt -r 500
```

以上所有可选选项可联合使用达到最终效果。

## Others

使用geo 信息需要自我下载`GeoLite2-City.mmdb` 和 `GeoLite2-ASN.mmdb`,可通过`igeo-dl` 输入url 下载。
url 可用来源:

https://github.com/P3TERX/GeoLite.mmdb

### igeo-info

查看ip 归属地信息的工具

```shell
igeo-info -h
usage: igeo-info [-h] sources [sources ...]

geo-info 获取ip(s) 的归属地信息

positional arguments:
  sources     待获取归属地信息的ip(s)

optional arguments:
  -h, --help  show this help message and exit
```

### igeo-dl

下载mmdb 数据库的工具

```shell
igeo-dl --help
usage: igeo-dl [-h] [-u URL] [-p PROXY]

igeo-dl 升级/下载geo 数据库

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     geo 数据库下载地址, 要求结尾包含GeoLite2-City.mmdb 或GeoLite2-ASN.mmdb
  -p PROXY, --proxy PROXY
                        下载时使用的代理
```

### igeo-cfg

`igeo-dl` 的配置文件,用于下载mmdb 数据库,建议去github 找寻。

```shell
igeo-cfg -h
usage: igeo-cfg [-h]

igeo-cfg 编辑geo config

optional arguments:
  -h, --help  show this help message and exit
```

### ip-filter

ip 筛选工具

```shell
usage: ip-filter [-h] [-w WHITE_LIST [WHITE_LIST ...]] [-b BLOCK_LIST [BLOCK_LIST ...]] [-pl PREFER_LOCS [PREFER_LOCS ...]]
                 [-po PREFER_ORGS [PREFER_ORGS ...]] [-bo BLOCK_ORGS [BLOCK_ORGS ...]] -o OUTPUT
                 sources [sources ...]

ifilter: ip 筛选工具

positional arguments:
  sources               待筛选的ip(s)

optional arguments:
  -h, --help            show this help message and exit
  -w WHITE_LIST [WHITE_LIST ...], --white_list WHITE_LIST [WHITE_LIST ...]
                        偏好ip参数, 格式为: expr1 expr2, 如8 9 会筛选8和9开头的ip
  -b BLOCK_LIST [BLOCK_LIST ...], --block_list BLOCK_LIST [BLOCK_LIST ...]
                        屏蔽ip参数, 格式为: expr1 expr2, 如8 9 会过滤8和9开头的ip
  -pl PREFER_LOCS [PREFER_LOCS ...], --prefer_locs PREFER_LOCS [PREFER_LOCS ...]
                        偏好国家地区选择, 格式为: expr1 expr2, 如hongkong japan 会筛选HongKong 和Japan 地区的ip
  -po PREFER_ORGS [PREFER_ORGS ...], --prefer_orgs PREFER_ORGS [PREFER_ORGS ...]
                        偏好org 选择, 格式为: expr1 expr2, 如org1 org2 会筛选org1, org2 的服务商ip
  -bo BLOCK_ORGS [BLOCK_ORGS ...], --block_orgs BLOCK_ORGS [BLOCK_ORGS ...]
                        屏蔽org 选择, 格式为: expr1 expr2, 如org1 org2 会过滤org1, org2 的服务商ip
  -4, --only_v4         仅筛选ipv4
  -6, --only_v6         仅筛选ipv6
  -o OUTPUT, --output OUTPUT
                        输出文件
```

## License

[GNU General Public License, version 3](https://www.gnu.org/licenses/gpl-3.0.html)

## Release Note
- V2.0.5
  - 修复CF CDN 可用性测试不准确的问题


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ip-check",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "cdn, speed test, network speed",
    "author": "nobitaqaq",
    "author_email": "xiaoleigs@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "# ip-check\n\n\u9ad8\u6548\u7684cdn \u6d4b\u901f\u5de5\u5177\uff0c\u7528\u4e8eip \u4f18\u9009\u3002\n\n## \u5b89\u88c5\u4e0e\u90e8\u7f72\n\n```shell\npip install -U ip-check\n# \u6309\u9700\u4fee\u6539ip-check \u7a0b\u5e8f\u914d\u7f6e\u6587\u4ef6\nip-check-cfg\n# \u6309\u9700\u4fee\u6539igeo-cfg GEO \u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\nigeo-cfg\n# \u4e0b\u8f7dmmdb \u6570\u636e\u5e93\nigeo-dl\n```\n\nnote: \u4e0b\u8f7dmmdb \u6570\u636e\u5e93\u53ef\u80fd\u4f1a\u5931\u8d25\uff0c\u53ef\u4ee5\u624b\u52a8\u4e0b\u8f7dmmdb \u6570\u636e\u5e93\u5230`ip-check --version` \u6240\u8f93\u51fa\u7684\u8def\u5f84\n\n## \u4f7f\u7528\u65b9\u6cd5\n\n```shell\nip-check -h\nusage: ip-check [-h] [-w WHITE_LIST [WHITE_LIST ...]] [-b BLOCK_LIST [BLOCK_LIST ...]] [-pl PREFER_LOCS [PREFER_LOCS ...]]\n                [-po PREFER_ORGS [PREFER_ORGS ...]] [-bo BLOCK_ORGS [BLOCK_ORGS ...]] [-pp PREFER_PORTS [PREFER_PORTS ...]] [-lv MAX_VT_IP_COUNT]\n                [-lr MAX_RT_IP_COUNT] [-ls MAX_ST_IP_COUNT] [-lb MAX_BT_IP_COUNT] [-p PORT] [-H HOST] [-dr] [-dv] [-ds] [-o OUTPUT] [-f] [-s SPEED]\n                [-as AVG_SPEED] [-r RTT] [-l LOSS] [-c CONFIG] [-v] [-ns] [--dry_run] [--version]\n                source [source ...]\n\nip-check \u53c2\u6570\n\npositional arguments:\n  source                \u6d4b\u8bd5\u6e90\u6587\u4ef6\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -w WHITE_LIST [WHITE_LIST ...], --white_list WHITE_LIST [WHITE_LIST ...]\n                        \u504f\u597dip\u53c2\u6570, \u683c\u5f0f\u4e3a: expr1 expr2, \u59828 9 \u4f1a\u7b5b\u90098\u548c9\u5f00\u5934\u7684ip\n  -b BLOCK_LIST [BLOCK_LIST ...], --block_list BLOCK_LIST [BLOCK_LIST ...]\n                        \u5c4f\u853dip\u53c2\u6570, \u683c\u5f0f\u4e3a: expr1 expr2, \u59828 9 \u4f1a\u8fc7\u6ee48\u548c9\u5f00\u5934\u7684ip\n  -pl PREFER_LOCS [PREFER_LOCS ...], --prefer_locs PREFER_LOCS [PREFER_LOCS ...]\n                        \u504f\u597d\u56fd\u5bb6\u5730\u533a\u9009\u62e9, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982hongkong japan \u4f1a\u7b5b\u9009HongKong \u548cJapan \u5730\u533a\u7684ip\n  -po PREFER_ORGS [PREFER_ORGS ...], --prefer_orgs PREFER_ORGS [PREFER_ORGS ...]\n                        \u504f\u597dorg \u9009\u62e9, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982org1 org2 \u4f1a\u7b5b\u9009org1, org2 \u7684\u670d\u52a1\u5546ip\n  -bo BLOCK_ORGS [BLOCK_ORGS ...], --block_orgs BLOCK_ORGS [BLOCK_ORGS ...]\n                        \u5c4f\u853dorg \u9009\u62e9, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982org1 org2 \u4f1a\u8fc7\u6ee4org1, org2 \u7684\u670d\u52a1\u5546ip\n  -pp PREFER_PORTS [PREFER_PORTS ...], --prefer_ports PREFER_PORTS [PREFER_PORTS ...]\n                        \u9488\u5bf9ip:port \u683c\u5f0f\u7684\u6d4b\u8bd5\u6e90\u7b5b\u9009\u7aef\u53e3, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982443 8443 \u4f1a\u7b5b\u9009\u51fa443 \u548c8443 \u7aef\u53e3\u7684ip\n  -lv MAX_VT_IP_COUNT, --max_vt_ip_count MAX_VT_IP_COUNT\n                        \u6700\u5927\u7528\u6765\u68c0\u6d4b\u6709\u6548(valid) ip\u6570\u91cf\u9650\u5236\n  -lr MAX_RT_IP_COUNT, --max_rt_ip_count MAX_RT_IP_COUNT\n                        \u6700\u5927\u7528\u6765\u68c0\u6d4brtt ip\u6570\u91cf\u9650\u5236\n  -ls MAX_ST_IP_COUNT, --max_st_ip_count MAX_ST_IP_COUNT\n                        \u6700\u5927\u7528\u6765\u68c0\u6d4b\u4e0b\u8f7d(speed) \u901f\u5ea6\u7684ip\u6570\u91cf\u9650\u5236\n  -lb MAX_BT_IP_COUNT, --max_bt_ip_count MAX_BT_IP_COUNT\n                        \u6700\u5927better ip\u7684ip\u6570\u91cf\u9650\u5236\n  -p PORT, --port PORT  \u7528\u6765\u68c0\u6d4b\u7684\u7aef\u53e3\n  -H HOST, --host HOST  \u53ef\u7528\u6027\u57df\u540d\n  -dr, --disable_rt     \u662f\u5426\u7981\u7528RTT \u6d4b\u8bd5\n  -dv, --disable_vt     \u662f\u5426\u7981\u7528\u53ef\u7528\u6027\u6d4b\u8bd5\n  -ds, --disable_st     \u662f\u5426\u7981\u7528\u901f\u5ea6\u6d4b\u8bd5\n  -o OUTPUT, --output OUTPUT\n                        \u8f93\u51fa\u6587\u4ef6\n  -f, --fast_check      \u662f\u5426\u6267\u884c\u5feb\u901f\u6d4b\u8bd5\n  -s SPEED, --speed SPEED\n                        \u671f\u671bip\u7684\u6700\u4f4e\u7f51\u901f (kB/s)\n  -as AVG_SPEED, --avg_speed AVG_SPEED\n                        \u671f\u671bip\u7684\u6700\u4f4e\u5e73\u5747\u7f51\u901f (kB/s)\n  -r RTT, --rtt RTT     \u671f\u671b\u7684\u6700\u5927rtt (ms)\n  -l LOSS, --loss LOSS  \u671f\u671b\u7684\u6700\u5927\u4e22\u5305\u7387\n  -c CONFIG, --config CONFIG\n                        \u914d\u7f6e\u6587\u4ef6\n  -v, --verbose         \u663e\u793a\u8c03\u8bd5\u4fe1\u606f\n  -ns, --no_save        \u662f\u5426\u5ffd\u7565\u4fdd\u5b58\u6d4b\u901f\u7ed3\u679c\u6587\u4ef6\n  --dry_run             \u662f\u5426\u8df3\u8fc7\u6240\u6709\u6d4b\u8bd5\n  -4, --only_v4         \u4ec5\u6d4b\u8bd5ipv4\n  -6, --only_v6         \u4ec5\u6d4b\u8bd5ipv6\n  --version             show program's version number and exit\n```\n\n## \u914d\u7f6e\u6587\u4ef6\n\n\u6267\u884c`ip-check-cfg` \u4f1a\u751f\u6210`config.ini`,  \u6309\u7167\u5907\u6ce8\u4fee\u6539\u5373\u53ef\u3002\n\n## \u4f7f\u7528\u793a\u4f8b\n\n```shell\n# \u6587\u672c\u53c2\u6570\uff0c\u6587\u672c\u4e2d\u5185\u5bb9\u652f\u6301ip\u3001ip cidr\u3001\u652f\u6301ipv6\u3001\u652f\u6301ip:port \u8868\u8fbe\u5f0f\nip-check test.txt\n\n# ip \u53c2\u6570\uff0c\u652f\u6301ip\u3001ip cidr\u3001\u652f\u6301ipv6\u3001\u652f\u6301ip:port \u8868\u8fbe\u5f0f\nip-check 192.168.1.1/32\nip-check fe80::/ 10\nip-check 1.1.1.1:443\n\n# \u7981\u7528\u53ef\u7528\u6027\u6d4b\u8bd5\uff0c\u67d0\u4e9b\u60c5\u51b5\u53ef\u7528\u6027\u6d4b\u8bd5\u5931\u6548\uff0c\u53ef\u4e34\u65f6\u7981\u7528\u3002\nip-check test.txt -dv\n# \u7981\u7528rtt \u6d4b\u8bd5\uff0c\u67d0\u4e9b\u60c5\u51b5rtt \u6d4b\u8bd5\u5931\u6548\uff0c\u53ef\u4e34\u65f6\u7981\u7528\u3002\nip-check test.txt -dr\n\n# ip \u504f\u597d\uff0c\u5047\u8bbe\u4f60\u504f\u597d8\u548c9 \u5f00\u5934\u7684ip\nip-check test.txt -w \"8\" \"9\"\n# ip \u504f\u597d\uff0c\u5047\u8bbe\u4f60\u559c\u6b228.222\u548c8.223 \u5f00\u5934\u7684ip\nip-check test.txt -w \"8.222\" \"8.223\"\n# ip \u538c\u6076\uff0c\u5047\u8bbe\u4f60\u4e0d\u559c\u6b2213\u548c14 \u5f00\u5934\u7684ip\nip-check test.txt -b \"13\" \"14\"\n# ip \u538c\u6076\uff0c\u5047\u8bbe\u4f60\u4e0d\u559c\u6b22131.13\u548c131.14 \u5f00\u5934\u7684ip\nip-check test.txt -b \"131.13\" \"131.14\"\n# \u6309\u5730\u533a\u7b5b\u9009ip\nip-check test.txt -pl \"japan\" \"hongkong\"\n# ip:port \u683c\u5f0f\u7684\u6d4b\u8bd5\u6e90\u53ea\u6d4b\u8bd5\u7aef\u53e3\u4e3a8443 \u7684\u6d4b\u8bd5\u6e90\nip-check 7.8.9.10:443 7.8.9.10:8443 -pp 8443\n\n# \u6307\u5b9a\u6d4b\u8bd5\u7aef\u53e3\uff0c\u7f3a\u7701\u4e3a443\nip-check test.txt -p 8443\n\n# \u6307\u5b9a\u8f93\u51fa\u6587\u4ef6\uff0c\u9ed8\u8ba4\u4e3aresult \u4e0e\u6e90\u6587\u4ef6\u7684\u62fc\u63a5\nip-check test.txt -o better-ips.txt\n\n\n# \u9650\u5236\u53c2\u4e0e\u53ef\u7528\u6027\u6d4b\u8bd5ip \u7684\u6570\u91cf\nip-check test.txt -lv 100\n# \u9650\u5236\u53c2\u4e0ertt \u6d4b\u8bd5ip \u7684\u6570\u91cf\nip-check test.txt -lr 100\n# \u9650\u5236\u53c2\u4e0e\u4e0b\u8f7d\u901f\u5ea6\u6d4b\u8bd5\u7684ip \u7684\u6570\u91cf\nip-check test.txt -ls 100\n\n# \u5feb\u901f\u6d4b\u8bd5\uff0c \u5f00\u542f\u6b64\u9009\u9879\u540e\uff0c\u5f53\u5230\u8fbe\u6d4b\u8bd5\u65f6\u957f\u4e00\u534a\u4e0b\u8f7d\u65f6\u95f4\u540e\uff0c\u6700\u9ad8\u7f51\u901f\u4ecd\u672a\u8fbe\u5230\u671f\u7f51\u7f51\u901f\u7684\u4e00\u534a\u5219\u9000\u51fa\u6b64ip \u4e0b\u8f7d\u6d4b\u901f\nip-check test.txt -f\n\n# \u6307\u5b9a\u671f\u7f51\u7f51\u901f\uff0c\u5355\u4f4d kB/s\nip-check test.txt -s 20000\n\n# \u6307\u5b9a\u671f\u671b\u7684\u6700\u5927rtt\uff0c \u5355\u4f4d ms\nip-check test.txt -r 500\n```\n\n\u4ee5\u4e0a\u6240\u6709\u53ef\u9009\u9009\u9879\u53ef\u8054\u5408\u4f7f\u7528\u8fbe\u5230\u6700\u7ec8\u6548\u679c\u3002\n\n## Others\n\n\u4f7f\u7528geo \u4fe1\u606f\u9700\u8981\u81ea\u6211\u4e0b\u8f7d`GeoLite2-City.mmdb` \u548c `GeoLite2-ASN.mmdb`\uff0c\u53ef\u901a\u8fc7`igeo-dl` \u8f93\u5165url \u4e0b\u8f7d\u3002\nurl \u53ef\u7528\u6765\u6e90\uff1a\n\nhttps://github.com/P3TERX/GeoLite.mmdb\n\n### igeo-info\n\n\u67e5\u770bip \u5f52\u5c5e\u5730\u4fe1\u606f\u7684\u5de5\u5177\n\n```shell\nigeo-info -h\nusage: igeo-info [-h] sources [sources ...]\n\ngeo-info \u83b7\u53d6ip(s) \u7684\u5f52\u5c5e\u5730\u4fe1\u606f\n\npositional arguments:\n  sources     \u5f85\u83b7\u53d6\u5f52\u5c5e\u5730\u4fe1\u606f\u7684ip(s)\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\n### igeo-dl\n\n\u4e0b\u8f7dmmdb \u6570\u636e\u5e93\u7684\u5de5\u5177\n\n```shell\nigeo-dl --help\nusage: igeo-dl [-h] [-u URL] [-p PROXY]\n\nigeo-dl \u5347\u7ea7/\u4e0b\u8f7dgeo \u6570\u636e\u5e93\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -u URL, --url URL     geo \u6570\u636e\u5e93\u4e0b\u8f7d\u5730\u5740, \u8981\u6c42\u7ed3\u5c3e\u5305\u542bGeoLite2-City.mmdb \u6216GeoLite2-ASN.mmdb\n  -p PROXY, --proxy PROXY\n                        \u4e0b\u8f7d\u65f6\u4f7f\u7528\u7684\u4ee3\u7406\n```\n\n### igeo-cfg\n\n`igeo-dl` \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u7528\u4e8e\u4e0b\u8f7dmmdb \u6570\u636e\u5e93\uff0c\u5efa\u8bae\u53bbgithub \u627e\u5bfb\u3002\n\n```shell\nigeo-cfg -h\nusage: igeo-cfg [-h]\n\nigeo-cfg \u7f16\u8f91geo config\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\n### ip-filter\n\nip \u7b5b\u9009\u5de5\u5177\n\n```shell\nusage: ip-filter [-h] [-w WHITE_LIST [WHITE_LIST ...]] [-b BLOCK_LIST [BLOCK_LIST ...]] [-pl PREFER_LOCS [PREFER_LOCS ...]]\n                 [-po PREFER_ORGS [PREFER_ORGS ...]] [-bo BLOCK_ORGS [BLOCK_ORGS ...]] -o OUTPUT\n                 sources [sources ...]\n\nifilter: ip \u7b5b\u9009\u5de5\u5177\n\npositional arguments:\n  sources               \u5f85\u7b5b\u9009\u7684ip(s)\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -w WHITE_LIST [WHITE_LIST ...], --white_list WHITE_LIST [WHITE_LIST ...]\n                        \u504f\u597dip\u53c2\u6570, \u683c\u5f0f\u4e3a: expr1 expr2, \u59828 9 \u4f1a\u7b5b\u90098\u548c9\u5f00\u5934\u7684ip\n  -b BLOCK_LIST [BLOCK_LIST ...], --block_list BLOCK_LIST [BLOCK_LIST ...]\n                        \u5c4f\u853dip\u53c2\u6570, \u683c\u5f0f\u4e3a: expr1 expr2, \u59828 9 \u4f1a\u8fc7\u6ee48\u548c9\u5f00\u5934\u7684ip\n  -pl PREFER_LOCS [PREFER_LOCS ...], --prefer_locs PREFER_LOCS [PREFER_LOCS ...]\n                        \u504f\u597d\u56fd\u5bb6\u5730\u533a\u9009\u62e9, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982hongkong japan \u4f1a\u7b5b\u9009HongKong \u548cJapan \u5730\u533a\u7684ip\n  -po PREFER_ORGS [PREFER_ORGS ...], --prefer_orgs PREFER_ORGS [PREFER_ORGS ...]\n                        \u504f\u597dorg \u9009\u62e9, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982org1 org2 \u4f1a\u7b5b\u9009org1, org2 \u7684\u670d\u52a1\u5546ip\n  -bo BLOCK_ORGS [BLOCK_ORGS ...], --block_orgs BLOCK_ORGS [BLOCK_ORGS ...]\n                        \u5c4f\u853dorg \u9009\u62e9, \u683c\u5f0f\u4e3a: expr1 expr2, \u5982org1 org2 \u4f1a\u8fc7\u6ee4org1, org2 \u7684\u670d\u52a1\u5546ip\n  -4, --only_v4         \u4ec5\u7b5b\u9009ipv4\n  -6, --only_v6         \u4ec5\u7b5b\u9009ipv6\n  -o OUTPUT, --output OUTPUT\n                        \u8f93\u51fa\u6587\u4ef6\n```\n\n## License\n\n[GNU General Public License, version 3](https://www.gnu.org/licenses/gpl-3.0.html)\n\n## Release Note\n- V2.0.5\n  - \u4fee\u590dCF CDN \u53ef\u7528\u6027\u6d4b\u8bd5\u4e0d\u51c6\u786e\u7684\u95ee\u9898\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Powerful cdn network speed test utils.",
    "version": "2.0.5",
    "project_urls": null,
    "split_keywords": [
        "cdn",
        " speed test",
        " network speed"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c925f4d0185818bba6e827075ca7536c3b31b96d92db08571371e666b3f24b6e",
                "md5": "165402666cf31c393587e286bd1b74e4",
                "sha256": "c99acd2bbbc9ad74f887908b6fe977c8cd00218adcfdd2a53eb795e947707f16"
            },
            "downloads": -1,
            "filename": "ip_check-2.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "165402666cf31c393587e286bd1b74e4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 40458,
            "upload_time": "2024-12-16T01:06:14",
            "upload_time_iso_8601": "2024-12-16T01:06:14.523501Z",
            "url": "https://files.pythonhosted.org/packages/c9/25/f4d0185818bba6e827075ca7536c3b31b96d92db08571371e666b3f24b6e/ip_check-2.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 01:06:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ip-check"
}
        
Elapsed time: 0.46904s