Skip to main content

将 gfwlist2pac 转换为 pac

项目描述

PyPI 版本 构建状态 覆盖状态

从 gfwlist 生成快速 PAC 文件。示例:快速模式 /精确模式

快速模式:使用 O(1) 域查找

精准模式:使用adblock plus引擎

用法

pip install gfwlist2pac

usage: gfwlist2pac [-h] [-i GFWLIST] -f PAC -p PROXY [--user-rule USER_RULE]
               [--precise]

optional arguments:
  -h, --help            show this help message and exit
  -i GFWLIST, --input GFWLIST
                        path to gfwlist
  -f PAC, --file PAC    path to output pac
  -p PROXY, --proxy PROXY
                        the proxy parameter in the pac file, for example,
                        "SOCKS5 127.0.0.1:1080;"
  --user-rule USER_RULE
                        user rule file, which will be appended to gfwlist
  --precise             use adblock plus algorithm instead of O(1) lookup

表现

GFWList2PAC 生成的 PAC 比 SwitchySharp 快 1900 倍。

Testing fast mode pac generated by gfwlist2pac
avg: 0.50us

Testing precise mode pac generated by gfwlist2pac
avg: 1.66us

Testing pac generated by switchysharp
avg: 952.99us

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

gfwlist2pac-1.1.4.tar.gz (35.9 kB 查看哈希

已上传 source

内置分布

gfwlist2pac-1.1.4-py3-none-any.whl (37.6 kB 查看哈希

已上传 py3