Skip to main content

Python bindings for shadowsocks sysproxy utility.

Project description

sysproxy

Deploy PyPI

Python bindings for shadowsocks sysproxy utility. This is a Windows-only package.

Install

pip install sysproxy

API

>>> import sysproxy
>>> sysproxy.off() # Turn proxy settings off.
True
>>> sysproxy.pac('pac_url') # Turn proxy settings on with PAC.
True
>>> sysproxy.set('127.0.0.1:10809', '127.*;10.*;172.16.*') # Turn proxy settings on with server and bypass.
True
>>> sysproxy.daemon_off() # Turn proxy daemon off.
True
>>> sysproxy.daemon_on_() # Turn proxy daemon on. You should launch this function in a Python thread.

sysproxy daemon

When sysproxy daemon turned on, it executes a window-less WINAPI event loop that captures WM_QUERYENDSESSION message, which is sent when Windows is about to shutdown. When the message arrives, the daemon calls off(), which turns proxy settings off.

As mentioned above, sysproxy.daemon_on_() will block current Python execution, so you should launch it in a Python thread.

Tested Platform

sysproxy works on all reasonable Windows platform with all Python version(Python 3).

Below are tested build in github actions.

Platform Python 3.6-Python 3.13
windows-2019 :heavy_check_mark:
windows-2022 :heavy_check_mark:

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

sysproxy-0.1.7.tar.gz (4.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sysproxy-0.1.7-cp313-cp313t-win_arm64.whl (54.2 kB view details)

Uploaded CPython 3.13tWindows ARM64

sysproxy-0.1.7-cp313-cp313t-win_amd64.whl (60.0 kB view details)

Uploaded CPython 3.13tWindows x86-64

sysproxy-0.1.7-cp313-cp313-win_arm64.whl (52.5 kB view details)

Uploaded CPython 3.13Windows ARM64

sysproxy-0.1.7-cp313-cp313-win_amd64.whl (55.8 kB view details)

Uploaded CPython 3.13Windows x86-64

sysproxy-0.1.7-cp312-cp312-win_arm64.whl (52.5 kB view details)

Uploaded CPython 3.12Windows ARM64

sysproxy-0.1.7-cp312-cp312-win_amd64.whl (55.7 kB view details)

Uploaded CPython 3.12Windows x86-64

sysproxy-0.1.7-cp311-cp311-win_arm64.whl (53.2 kB view details)

Uploaded CPython 3.11Windows ARM64

sysproxy-0.1.7-cp311-cp311-win_amd64.whl (55.2 kB view details)

Uploaded CPython 3.11Windows x86-64

sysproxy-0.1.7-cp310-cp310-win_amd64.whl (54.4 kB view details)

Uploaded CPython 3.10Windows x86-64

sysproxy-0.1.7-cp39-cp39-win_amd64.whl (54.4 kB view details)

Uploaded CPython 3.9Windows x86-64

sysproxy-0.1.7-cp38-cp38-win_amd64.whl (54.6 kB view details)

Uploaded CPython 3.8Windows x86-64

sysproxy-0.1.7-cp37-cp37m-win_amd64.whl (54.8 kB view details)

Uploaded CPython 3.7mWindows x86-64

sysproxy-0.1.7-cp36-cp36m-win_amd64.whl (54.8 kB view details)

Uploaded CPython 3.6mWindows x86-64

File details

Details for the file sysproxy-0.1.7.tar.gz.

File metadata

  • Download URL: sysproxy-0.1.7.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2aee5ad7594aa03d3714bf341d19ba244ff315d226988cf1c31f8157bdd5730e
MD5 1b096dc0be43699e4a527131ee8036a7
BLAKE2b-256 f86d166fd5fe86b0518442bfeec0ba0afccd44be3438d8e0a9daeae50ed6a422

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7.tar.gz:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp313-cp313t-win_arm64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp313-cp313t-win_arm64.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: CPython 3.13t, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp313-cp313t-win_arm64.whl
Algorithm Hash digest
SHA256 f1ed1bd6ed970263a92a8f634690ec6cf4d8291bdfee423627e1c48a9925f75b
MD5 de6d71b950fef8c31ae3f42a167abd3b
BLAKE2b-256 f5a7e01248bc806057ca5ae5040da7c5cfcbae0520940fd5dddae9ad787bda31

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp313-cp313t-win_arm64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp313-cp313t-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp313-cp313t-win_amd64.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: CPython 3.13t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 0218279084e01d29cf0287ef9d5e89f0b8acc237b6554e6a5e4769077a459b9c
MD5 181f92d51e190ee5d39657f8cd3c110e
BLAKE2b-256 13a3e00aa1f27f5a406a2f460b0824c920a4be03226cdb0de5ffb775401206a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp313-cp313t-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp313-cp313-win_arm64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp313-cp313-win_arm64.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: CPython 3.13, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 8586a28f1c5b8656c613208c62dd3fcfebcd676be29d1174d36dbefe3a5e38c2
MD5 d6187186d3514910658a2685aa29dd82
BLAKE2b-256 b466e9bf82d3e80d65754e7193f50f5085bd4d89794d9bf50b58d65077b74783

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp313-cp313-win_arm64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 83c357e35633729e8a290a76d25fe80310a81c9df1598a10e7a8bf583285de72
MD5 26f67d7d8927b420a5ea5c49e524289a
BLAKE2b-256 ce9ac9dc361119c2dfedcafcb82ec5e0e51cbbce099b7d25a7645334cf7b4237

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp313-cp313-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp312-cp312-win_arm64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp312-cp312-win_arm64.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: CPython 3.12, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 38ce36e837cb44ce97fe7c2f6a98b4f47a000d773620dcfee9f56abbb7cb7b50
MD5 8da36fc7f9f070d9f6b3dcb10fcaaf51
BLAKE2b-256 3f9ddde5eee0c25d5fe0f04e743a4850027d6bd7d7cb1efe43b805b9bae5c4a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp312-cp312-win_arm64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 55.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98d08f303b41798027ccca7b7f8274c59b0a816955dac807904a3d70f66834b8
MD5 6fe3a63cf3167a384c362c060d1d1684
BLAKE2b-256 e4fec4013ab22a6369d96a8610dbde2b6528ee5d4c7c9b4718312511010bcead

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp312-cp312-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp311-cp311-win_arm64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp311-cp311-win_arm64.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: CPython 3.11, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp311-cp311-win_arm64.whl
Algorithm Hash digest
SHA256 627f631141af24df571f2675de7e20c0c5fc5d2383db13bf473028788582313c
MD5 ad2fe6c4faa796858d1dc6eea68be992
BLAKE2b-256 1d2044c4dd99f86fdd8a4b7f80f13ea4ca2c95b2139a4a129446607249a99114

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp311-cp311-win_arm64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 55.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b2d92f8f823f8faf5464a8b6b4abdb9aa089b385b2e8b268bdf38032dbe57229
MD5 b6ff9f685299b6bc825c04a8704dee24
BLAKE2b-256 3069c3c7b31a1e0ccc026d83edd5e39147a565763412d5b00f98d05c165bab16

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp311-cp311-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e718ea1f25fa4dc8f69361b3f35ce16bbc8a22929b764a53fed7a021463242e5
MD5 8ff25e5a0959c9c65e7a2387e392182d
BLAKE2b-256 25faacc339620085e81d47b7c4b8d117117ea602b76051808d74b33ad7c15271

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp310-cp310-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4ba4106233a8383115100723fd088a6fd4ece1b345f30d064cb54e5ce08f89fd
MD5 d3cb434579397b6b6726988b9ca5b48f
BLAKE2b-256 400711723edb27fa740d5fad91a8dc8effcca37851acb9b294959ff4d80167df

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp39-cp39-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 54.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a40b80c747c1a273d3b293bd497e9eafd837e1144b25e5ba323716c8603d043
MD5 34d4e7c7e4049a634834b1919d4cd211
BLAKE2b-256 63523ef691ce781c7693af206e98a4f75ca96523dbed6e087ed117e16a92fcf9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp38-cp38-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 24f85128c66a81c9c9cb25c7babaf5b32cded0926491e3bcb90837111c4b41a3
MD5 cd2472e0bd719455a1b807606f1a82cb
BLAKE2b-256 3ab2013e1e4b9a537b3257d86681bd5d9e31e58c92dfca1f81cdc7fff7a15da4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp37-cp37m-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sysproxy-0.1.7-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: sysproxy-0.1.7-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sysproxy-0.1.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 58a79063b629e453f1e59699d08a14ea136ede80790ba806c78086cfc3736bf7
MD5 f9693e6a8789d78bf192244dd7cfa996
BLAKE2b-256 775920dc5dbe45d631da4b0d78b5ccd023adc17d4c0e8d726db9874254757129

See more details on using hashes here.

Provenance

The following attestation bundles were made for sysproxy-0.1.7-cp36-cp36m-win_amd64.whl:

Publisher: deploy-pypi.yml on LorenEteval/sysproxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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