Mudenng / gfwlist2pac

Convert GFWList into O(1) PAC file

Home Page:https://pypi.python.org/pypi/gfwlist2pac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GFWList2PAC

Build Status

Generate O(1) PAC file from gfwlist.

Usage

pip install gfwlist2pac

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

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

Performance

An example of generated PAC file is [here] 1.

The PAC generated by GFWList2PAC is 1267x faster than SwitchySharp.

Testing pac generated by gfwlist2pac
total: 46.411584ms
avg: 0.6706876300578034ns

Testing pac generated by switchsharp
total: 58828.813476ms
avg: 850.1273623699423ns

About

Convert GFWList into O(1) PAC file

https://pypi.python.org/pypi/gfwlist2pac

License:MIT License


Languages

Language:JavaScript 98.9%Language:Python 1.0%Language:Shell 0.1%