pacparser

Library to parse proxy auto-config (PAC) files

brewmacoslinux
Try with needOr install directly
Source

About

Library to parse proxy auto-config (PAC) files

Commands

pacparser

Examples

Parse a PAC file and find proxy for a specific URL$ pacparser -p /path/to/proxy.pac -u http://example.com
Test PAC file validity and output configuration$ pacparser -p /path/to/proxy.pac
Use pacparser library in Python for proxy resolution$ python3 -c "import pacparser; pacparser.parse_pac('file.pac'); print(pacparser.find_proxy('http://example.com'))"