proxy-watch
Read and watch the operating system's proxy settings on Windows, macOS and Linux (GNOME,
KDE), layered with http_proxy, https_proxy, all_proxy and no_proxy, and resolve
which route a URL takes under them (including PAC).
pip install proxy-watch
Usage
Read once
import proxy_watch
snapshot = proxy_watch.read()
route = snapshot.route("https://example.com/")
if route.kind == "steps":
print(route.steps) # ["direct"] or proxy URLs, credentials included
else:
print(route.kind) # "pac", "pac-inline" or "wpad": a PAC script decides
snapshot.to_dict() gives the whole configuration as dicts and lists.
Watch changes
def on_change(err, snapshot):
print(err or snapshot.route("https://example.com/").kind)
with proxy_watch.watch(on_change) as watcher:
...
on_change runs on the watch's own thread. On GNOME, start multiprocessing children with
spawn or forkserver: a child forked right after a read can hang on a GLib lock.
PAC
route = snapshot.route("https://example.com/", pac="auto")
pac="native" runs the OS's engine (WinHTTP, CFNetwork), "quickjs" runs QuickJS in this
process, and "auto" takes the OS's where it has one. QuickJS answers as if off every
network until a PacPolicy says where the machine is (my_ip_address, resolve_dns).
Settings of your own
snapshot = proxy_watch.read(
precedence="only", # no OS settings: the same answer on every machine
env={"https_proxy": "http://proxy.corp.example:8080", "no_proxy": ".corp.example"},
)
snapshot.route("http://localhost:3000/", bypass="localhost,127.0.0.1")
bypass sends destinations direct on top of any configuration; GNOME and KDE settings do
not exclude loopback.
Wheels
One abi3 wheel per platform for CPython 3.10 and later, and one for 3.14t (free-threaded,
without the GIL): Linux x86-64 and AArch64 (manylinux2014, musllinux 1.2), Linux ARMv7
(manylinux2014), macOS x86-64 and arm64, Windows x86-64 and ARM64.
License
MIT OR Apache-2.0. Each wheel carries THIRD-PARTY-LICENSES.txt for the code linked into
it.
Metadata
Release files for proxy-watch 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 23.8 MB
Release files / proxy_watch-0.3.0-cp314-cp314t-win_arm64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-win_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows ARM64 |
|
SHA-256 checksum How to use checksums |
bd16181b2bcace2c7d10b7159770b8057e25f7a74006522e2ddecd67ed3f2d5c
|
|
BLAKE2b-256 checksum How to use checksums |
7947d52c29836667782488e7dde8a69c305646c8122257911872f43375b0b91f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-win_amd64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
43612521d9c0991398194eaa3ee5b75ce7a2943a7e8169599ef8026365a8bbbc
|
|
BLAKE2b-256 checksum How to use checksums |
ab5bb565b4748ce225f31521df6bb8fe944571686d610fd44e0815e9e98addbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
d9abec9e35a9231a4217ac40b979ad824d4ce65688281c1749ef36d83e53ad36
|
|
BLAKE2b-256 checksum How to use checksums |
7e6755cf8d11e8762432e2acb7142c0e3e840bf0a1bc960d7ee380344c39b53b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
d9279f837c085dfd0b2f3c58cd64e491949f0b8afdb518cef07c08004dc055ae
|
|
BLAKE2b-256 checksum How to use checksums |
d7957b28ccb256fd692057e1b58056d3da1d6769a4c64a94745a2f4cdb441d16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
823cf4b7d06bac1ebe73df9c8f0b68a28009281f2fff8d8cd7f1338d6f67777a
|
|
BLAKE2b-256 checksum How to use checksums |
600eedc39458ad8702ceaf1d7842c2eb14ed77207b5e0cfadd6c8e4f82b0105d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
bdf2d212dafda50ef36d2b9793245475dfe1debfd72e6c9962c8aaaba7816455
|
|
BLAKE2b-256 checksum How to use checksums |
49dd5e4eabae9f2212b44dabfabc5aa78555abf84324be4e83a00ec382f2e259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
0a24e2a6843a611886511fac57b14e1a6c832b7ff04ec60f8b650fcdc2fd7c22
|
|
BLAKE2b-256 checksum How to use checksums |
e4c7a3777afecb9b57be896aa5ba80067212db7c3314cb3449b9309882c3126e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-macosx_11_0_x86_64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
acdca60f70bf73c900d66ade488793694f09f716ec10166e6298181bdf4ae29e
|
|
BLAKE2b-256 checksum How to use checksums |
9810b4793a23ea72acc96157598bad568e85b296138624fe482d5a8411c5ab1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | proxy_watch-0.3.0-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ab4083bf6c8378509c2f0209752bcd914b3b83cd4ac7ac07a568fd29e862f53f
|
|
BLAKE2b-256 checksum How to use checksums |
8fe0bd113df8cd483f8ab4c25c3c6383541cb2628406bc4946da6c1f400c1326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-win_arm64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
1ac0fa99f4360213aea183b4eed2ee0335c8e4c9a9c39266eb63dedd5c101c7c
|
|
BLAKE2b-256 checksum How to use checksums |
8632917ac47792277af39137190b354905662bd2a5397b15f699d4fa7719b584
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-win_amd64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
368cfedcece89e20fb49d38cba570d5d999f8c306c51e15223f599cf0b12002e
|
|
BLAKE2b-256 checksum How to use checksums |
7e103a13380abfe601c8a2fec8664b66d62f64671ab8393f47d0061666efd851
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ff4025aa9a02ab55ec3994f35ab63c643784d4eea750cd5ecf3a21e276efeed2
|
|
BLAKE2b-256 checksum How to use checksums |
1b6054a330bad3d01e8c6bc7a7a57ef9e8140911454783ba43d0b74edd5122ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
148d70a5e5746415a56da01dc1f1e177bf240393bc47fbdc6de1807ad7bf3664
|
|
BLAKE2b-256 checksum How to use checksums |
50ef237c05f2f6c611a2046c77b1862f90d799c467d741edead5706b37ddbb47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2c9eec6c677975f511683e52fbd174e221c8485d5a9a8b2168c4a511ebcfb05d
|
|
BLAKE2b-256 checksum How to use checksums |
b0b5d17c07d85ed925229bfc2f26e9f161b70a91bda9c9501acc4211e035b752
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
a6a894ac9b000bf32132e465acff9692e5c2b7b0ae4e0129dd9ec05b5c4d9dc6
|
|
BLAKE2b-256 checksum How to use checksums |
aca2d1a0cd8875091b14172ba2cad31692f86d4aa78d5cd746489d8daa1aa72d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
23c4941810eb479331d507a43f21cc4472bb89e3c8c249f1a80db88b50f581dd
|
|
BLAKE2b-256 checksum How to use checksums |
39eb776c8413c1aa2b967d55799d076e2c1baf985947fd5dac47f1b61868f1b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
810df87204e562b8965d66a669f6a2fac67441794a6f5643f686a22daf28f09d
|
|
BLAKE2b-256 checksum How to use checksums |
0a57b2e2967fc02bd00a228f7a72db2967af4def4b18dacbadb7f9dc1320c4b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / proxy_watch-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | proxy_watch-0.3.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6e6d73d6d6f830d5323ee29747d8a954b2ccd6ddc68199c01f76736a6ba34de2
|
|
BLAKE2b-256 checksum How to use checksums |
d73314c3cd2064430ec775067c4c180372675033d884552a4d8ca2f9f6569d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for proxy-watch 0.3.0
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.