Skip to main content

convert gfwlist2pac to pac

Project description

PyPI version Build Status Coverage Status

Generate fast PAC file from gfwlist. Examples: fast mode / precise mode.

Fast mode: use O(1) domain lookup

Precise mode: use adblock plus engine

Usage

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

Performance

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gfwlist2pac-1.1.4.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

gfwlist2pac-1.1.4-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file gfwlist2pac-1.1.4.tar.gz.

File metadata

  • Download URL: gfwlist2pac-1.1.4.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.26.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for gfwlist2pac-1.1.4.tar.gz
Algorithm Hash digest
SHA256 3e48149b6f01ace796e1e9a4ad46385a6864912ab110d4821307b0556c98fcd8
MD5 07e06f704f53f071331b5dbb423f03d0
BLAKE2b-256 324c0799bb55db47caca228fc10e4a166cbf594f3dab6c3e76ac0329163ec7d3

See more details on using hashes here.

File details

Details for the file gfwlist2pac-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: gfwlist2pac-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.26.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for gfwlist2pac-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af9a3006beafdb6abd02d2d3dc6afdf5085eb0092baf899c521c49d926906133
MD5 847da841ea0cc62f18c1f12dbaa3fd50
BLAKE2b-256 7bed050c4768f57530cc560b4e0974dde475ed021c9ac810a8323b3a79db0113

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page