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.

Source Distribution

MacPacbot-1.0.8.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file MacPacbot-1.0.8.tar.gz.

File metadata

  • Download URL: MacPacbot-1.0.8.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MacPacbot-1.0.8.tar.gz
Algorithm Hash digest
SHA256 558eb7b1b7f5edf104fb31654f97186c153eadc14e26540871a7d7823ccd97e5
MD5 0b69c5b63a247bfaa86b9d1d8c2f49d5
BLAKE2b-256 d6413e3a730234069e6f144a43872826ebf2daea5c0245330add985233011f00

See more details on using hashes here.

Supported by

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