Skip to main content

MacPacbot is a Python toolkit of PAC(auto proxy configuration) for Mac OS X

Project description

MacPacbot is a Python toolkit of PAC(auto proxy configuration) for Mac OS X, which makes it much easier to create, edit and enable PAC script.
It could transform a simple YAML config into a valid PAC script.

## Usage

Transform YAML info PAC, automatically detect network-service and update auto proxy configuration:

sudo pacbot <yaml_file> [-o <pac_file>]

Update auto proxy configuration with an existing PAC file:

sudo pacbot -u <pac_file>

Disable auto proxy in current network-service:

sudo pacbot -s off

Vim plugin:

function! EnablePAC()
if &filetype == 'javascript'
!sudo pacbot -u %
elseif &filetype == 'yaml'
!sudo pacbot %
endif
endfunction

command! PACenable call EnablePAC()
autocmd! bufwritepost *.pac :PACenable
autocmd! bufwritepost *.ypac :PACenable

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
MacPacbot-1.0.9.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page