No project description provided
Project description
PacGen: Pac file generator written in Python
If you use multiple proxies and you want to define rules to set specific proxy per specific host, this package can help you.
Simply create a ~/.pacgen.yml config file and define your rules there.
After that run updatepac command in your terminal and it will create ~/.proxy.pac
Installation
pip install pacgen
Sample ~/.pacgen.yml
proxies:
ssh_tunnel: socks5://127.0.0.1:1081
shadowsocks: socks5://127.0.0.1:1080
httpproxy: http://127.0.0.1:1082
routes:
172.19.20.10: ssh_tunnel
youtube.com: shadowsocks
viemo.com: shadowsocks
news.com: httpproxy
# default_proxy will be used for hosts which are not defined in routes.
default_proxy: shadowsocks
# here we define hosts that we don't want to use proxy for them.
excludes:
- bank.com
- lastpass.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PacGen-0.1.3.tar.gz.
File metadata
- Download URL: PacGen-0.1.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad106150d8daa78b30a1cd4d43c4fd20e65c1496fed8f3bfbe19cceb77f4f1b4
|
|
| MD5 |
519196db13d0663ac3d12297c93d1118
|
|
| BLAKE2b-256 |
9a03d0f994eb4e2385fca00dd285028bed5ce172b6e80f1ed62dd8cbda5ec00e
|
File details
Details for the file PacGen-0.1.3-py3-none-any.whl.
File metadata
- Download URL: PacGen-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a46cfcf9ce4dcab89ce70e704b10396e2c7ac1fbcd0e9b6bd2c3cd9b84d2ec04
|
|
| MD5 |
f9dc43bd3cf119949cd31cc4778d471f
|
|
| BLAKE2b-256 |
f0906a2aa87aede37394e1282164b7c18a6dba80d5c56233f6a2231d712440c7
|