semvec/pypi-packages huggingface dataset:
gfwlist2pac 1.1.4
convert gfwlist2pac to pac
License: MIT

GFWList2PAC
===========

|PyPI version| |Build Status| |Coverage Status|

Generate fast PAC file from gfwlist. Examples: `fast
mode <https://github.com/clowwindy/gfwlist2pac/blob/master/test/proxy.pac>`__
/ `precise
mode <https://github.com/clowwindy/gfwlist2pac/blob/master/test/proxy_abp.pac>`__.

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

.. |PyPI version| image:: https://img.shields.io/pypi/v/gfwlist2pac.svg?style=flat
   :target: https://pypi.python.org/pypi/gfwlist2pac
.. |Build Status| image:: https://img.shields.io/travis/clowwindy/gfwlist2pac/master.svg?style=flat
   :target: https://travis-ci.org/clowwindy/gfwlist2pac
.. |Coverage Status| image:: http://192.81.132.184/result/gfwlist2pac
   :target: http://192.81.132.184/job/gfwlist2pac/ws/htmlcov/index.html