py-valid-proxy
Installation
pip install py-valid-proxy
Usage
import pprint
from py_valid_proxy import valid_proxy
"""Valid proxy server ('alive' or 'dead')
Parameters
----------
host : str
IP Address
port : int
Port
scheme: str, optional
Scheme (default is 'http')
timeout: int, optional
Connect timeout is number of seconds (default is 5 sec.)
Returns
-------
None if proxy is 'dead'
class Proxy if proxy is 'alive'
"""
proxy_info = valid_proxy('8.219.97.248', 80, 'https', 10)
if proxy_info:
print('is alive')
pprint(proxy_info)
else:
print('is dead')
$ valid_proxy -h
usage: valid_proxy [-h] -ip IP -p P [-s {http,https,socks4,socks5}] [-t T] [-V]
Valid the functionality of the proxy server
options:
-h, --help show this help message and exit
-ip IP IP address of proxy server
-p P PORT of proxy server
-s {http,https,socks4,socks5}
SCHEME of proxy server
-t T The connect timeout is the number of seconds
-V, --version show program's version number and exit
$ valid_proxy -ip 12.186.205.120 -p 80 -s http
http://12.186.205.120:80 ... is alive
anonymity: high_anonymous
country: US
response time: 4.71 (secs)
$ valid_proxy -ip 12.186.205.120 -p 80 -s https
https://12.186.205.120:80 ... is alive
anonymity: transparent
country: US
response time: 0.5 (secs)
$ valid_proxy -ip 2.189.59.54 -p 80
http://2.189.59.54:80 ... is dead
Metadata
Release files for py-valid-proxy 0.3.1
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 |
|---|---|---|---|---|
| py_valid_proxy-0.3.1.tar.gz | 3.1 MB | Without provenance | Details for py_valid_proxy-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_valid_proxy-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for py_valid_proxy-0.3.1-py3-none-any.whl |
Total release size: 6.3 MB
Release files / py_valid_proxy-0.3.1.tar.gz
| Download URL | py_valid_proxy-0.3.1.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1af28a77355d537260bd1122370be2ab5e580e08ad6d20f67ae02dea56ca3f0
|
|
BLAKE2b-256 checksum How to use checksums |
133ad861540b08be8f576e03b67023fa2cdbc5aa90d7a5edb6040f1a3145197d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-41-generic
|
Release files / py_valid_proxy-0.3.1-py3-none-any.whl
| Download URL | py_valid_proxy-0.3.1-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
266deec43e828665b222a501f42a89bdb55b9218a4d62ff3f3080bba0eb8c360
|
|
BLAKE2b-256 checksum How to use checksums |
ca1abe0d785aebcba2db2377d4ca0adece82e0be069c8be008c3d7a5c5502bdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Linux/6.5.0-41-generic
|
Security for py-valid-proxy 0.3.1
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.