Skip to main content

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

Project description

MacPacbot is a Python toolkit for PAC(auto proxy configuration) of 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:
pacbot <yaml_file> -o <pac_file>

Automatically detect network-service and update auto proxy configuration:
pacbot -u [-o <pac_file>]

Disable auto proxy in current network-service:
pacbot -s off

Vim plugin:
function! EnablePAC()
if &filetype == 'javascript'
!sudo pacbot -u -o %
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.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for MacPacbot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e628aeac85ac85b31adb11deb130f8219ff0357c99bde40f81effb9aa3fb647
MD5 adcba17f4ee57b4bb646979d4f7e80a4
BLAKE2b-256 03ce5ecf2e07bb32aa732229ee8ee7e480875d65019fa3ba8be1f738a442ae73

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