hproxy for Python
The hproxy command-line tool, for your Python environments: check proxies in any shape a provider
prints, run a rotating proxy on your machine over your own list, and switch it to a new IP from any
script. The package carries the tool itself, one program for your system, and installs it as the
command hproxy beside your environment's other scripts. It needs no other Python package.
Use it
hproxy check --file proxies.txt --alive # which of your proxies work, from here
hproxy connect --file proxies.txt --rotate every --background
curl -x http://127.0.0.1:8080 https://example.com
hproxy new-ip # the next proxy, now
hproxy status # what runs, and through which proxy
hproxy connect gives every program on your machine one proxy at 127.0.0.1:8080, HTTP and SOCKS5
on the same port, with no login: the next of your proxies for every connection, or by the rule you
pick (every:25, every:10m, random, on-failure). Your proxies can be host:port:user:pass,
user:pass@host:port, socks5://..., or any other shape a provider prints.
From Python
import subprocess
import requests
from hproxy_cli import find_hproxy_bin
hproxy = find_hproxy_bin()
subprocess.run([hproxy, "connect", "--file", "proxies.txt", "--background"], check=True)
proxies = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"}
print(requests.get("https://hproxy.com/cdn-cgi/trace", proxies=proxies, timeout=30).text)
requests.post("http://127.0.0.1:8080/hproxy/new-ip", timeout=10) # the next proxy, from your script
python -m hproxy_cli runs the same program. The same for requests, httpx, aiohttp, Scrapy,
Playwright and the other tools and languages: the tested examples.
Systems
| System | Processors |
|---|---|
| Linux, any distribution, Alpine included | x86_64, ARM64, 32-bit ARM (ARMv7), 32-bit x86 |
| macOS | Apple Silicon (macOS 11 and later), Intel (macOS 10.13 and later) |
| Windows | x64, ARM64, 32-bit |
Every wheel holds the very file of the GitHub release with the same version, checked against its SHA-256 when the wheel is made: the release's files are built in public by the repository's workflow, each with a signed record of how it was built.
More
Every command · The apps for Windows, macOS, Linux and Android · hproxy.com
MIT license.
Metadata
Release files for hproxy-cli 0.4.9
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 / hproxy_cli-0.4.9-py3-none-win_arm64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-win_arm64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
64917ea28d07537d0db49a13cb683346ebb6a4514f5095050664780415855d6f
|
|
BLAKE2b-256 checksum How to use checksums |
96f0fc9bf4a2d0ee17f8941f986541e9ef0ed9789e5c2b18cb1543f9fb46036a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-win_amd64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fc62e54c4329048c8f9c72c64c339a2bdbfbd441a65e81838b49c8063efff318
|
|
BLAKE2b-256 checksum How to use checksums |
949306c92a4a76fd172a7bcf85e5c2b1bd406515b88109c82e586460b6386176
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-win32.whl
| Download URL | hproxy_cli-0.4.9-py3-none-win32.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
d141186c628742cd23630eb82e47db681ef7e17d0a018d8b85405ed93341a924
|
|
BLAKE2b-256 checksum How to use checksums |
213f643b72f7de1e291542ba9eda65cf68f397baef9221f32a41c22c5880abc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-musllinux_1_1_x86_64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Linux musl 1.1+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
900ff54969bec428e10dd5d89f6f250ef8388095c93e81f5a19f15a232c6ca0b
|
|
BLAKE2b-256 checksum How to use checksums |
23a6d44df156a7de1e8f5010f0e3913e35f238e7dba341905961ce14855b084a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-musllinux_1_1_i686.whl
| Download URL | hproxy_cli-0.4.9-py3-none-musllinux_1_1_i686.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Linux musl 1.1+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
fe38ce877757919d4ee9fd5f7f6f3382ea73874978b219a998a2e905b28714cf
|
|
BLAKE2b-256 checksum How to use checksums |
bdd439245780ab2e35cdbf4e8cd3d878a11c6dfb939517c430bdb65e44340fc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-musllinux_1_1_armv7l.whl
| Download URL | hproxy_cli-0.4.9-py3-none-musllinux_1_1_armv7l.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Linux musl 1.1+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
0f070acdd4eb9dd8c710156b096f0815e7bd156e1dc8138744e552f5c6961428
|
|
BLAKE2b-256 checksum How to use checksums |
7dfcb022438d8c9463c45225ce696ce06c77faf05eeeaf9822a0c146d09176e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-musllinux_1_1_aarch64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-musllinux_1_1_aarch64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Linux musl 1.1+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
49d8f88572f234d423f342ec71911058e7b3417e36a8f7449168bbca64d26427
|
|
BLAKE2b-256 checksum How to use checksums |
e42df9e7dc04a7e387090405ff8001b3e7715da4451ad726b564a6ac8d61ffa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
c177bbcc0ce816ed0ad02f7498b451440ce8aec09d712d620a434134b2a61aa5
|
|
BLAKE2b-256 checksum How to use checksums |
bfee59a0e0b630b44b74baa537f19d33a2cb8e631b0dec18b74da81bb1468376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | hproxy_cli-0.4.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Linux glibc 2.17+ x86-32 Python 3 |
|
SHA-256 checksum How to use checksums |
5cd27b803fde257f24b98599c66021e780756259f1add10e19cf5a2e4a55c5e1
|
|
BLAKE2b-256 checksum How to use checksums |
66e59bc9480e3af655b2acc5e963d4cf4ef2c8725d035a11ad5b966fb6b417d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | hproxy_cli-0.4.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Linux glibc 2.17+ ARMv7l Python 3 |
|
SHA-256 checksum How to use checksums |
57293f1926788522ccf5154b7a440d3ab3617fb306460f69bfa7fd001fb69de3
|
|
BLAKE2b-256 checksum How to use checksums |
9748f0252a30c2515c0e90f6ee3cab984829bd8a2551985e96c3574a98450107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
aedcdf710d953638451066030419216e4d6b025489739a265eda35486c768256
|
|
BLAKE2b-256 checksum How to use checksums |
bfac782bd9954ece287d59ea96fa1592e55a2b716747ab81b1419276d6c14cfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-macosx_11_0_arm64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6d3eab81816b39f1d9f87e04784fe6affa2786b1c8f094d40f182385c9d5bd0d
|
|
BLAKE2b-256 checksum How to use checksums |
aa247c3717acb147c5b95bf1597873734aef461a5379900f1d7b30db606d7389
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / hproxy_cli-0.4.9-py3-none-macosx_10_13_x86_64.whl
| Download URL | hproxy_cli-0.4.9-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
cc6aa7e12b6b094b111afbe4a4ccdc8e6937283a69bf5f623e28930aa4888585
|
|
BLAKE2b-256 checksum How to use checksums |
15478499b4a8302fc564741f1ea6a3a76c363c36e02f4e93f4231c314540f79a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for hproxy-cli 0.4.9
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.