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
Metadata
Release files for PacGen 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PacGen-0.1.3.tar.gz | 2.6 kB | Without provenance | Details for PacGen-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PacGen-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for PacGen-0.1.3-py3-none-any.whl |
Total release size: 6.4 kB
Release files / PacGen-0.1.3.tar.gz
| Download URL | PacGen-0.1.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad106150d8daa78b30a1cd4d43c4fd20e65c1496fed8f3bfbe19cceb77f4f1b4
|
|
BLAKE2b-256 checksum How to use checksums |
9a03d0f994eb4e2385fca00dd285028bed5ce172b6e80f1ed62dd8cbda5ec00e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / PacGen-0.1.3-py3-none-any.whl
| Download URL | PacGen-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a46cfcf9ce4dcab89ce70e704b10396e2c7ac1fbcd0e9b6bd2c3cd9b84d2ec04
|
|
BLAKE2b-256 checksum How to use checksums |
f0906a2aa87aede37394e1282164b7c18a6dba80d5c56233f6a2231d712440c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for PacGen 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.