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
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
Release history Release notifications | RSS feed
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.9.tar.gz
(4.9 kB
view details)
File details
Details for the file MacPacbot-1.0.9.tar.gz.
File metadata
- Download URL: MacPacbot-1.0.9.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d182ed5f5cd7f58f87b3db64fffd100507965ef6d84635abed7e7fc2e6c94a7
|
|
| MD5 |
0b13634fea45ec5198d7a83df7588afb
|
|
| BLAKE2b-256 |
4cf026e4c6b6d257b2609bf3c1797f855a2880c90e09a99c23267952c8e06284
|