Creates Proxies and binds them to a NIC - Windows only
pip install nic2proxy
Tested against Windows / Python 3.11 / Anaconda
MultiProxyServer class for managing and starting multiple proxy servers on Windows.
This class provides functionality to configure, start, and manage proxy servers.
It binds each proxy to a specific network interface.
It also includes methods for generating YAML configuration files,
retrieving the public IPv4 address of the host, and handling console events for controlling
server processes. It uses https://github.com/hang666/s5light under the hood
Usage:
1. Create an instance of MultiProxyServer with the desired interfaces and log folder.
2. Write the YAML configuration file with the write_yaml_config() method.
3. Start the proxy servers with the start_proxy() method. (Uses powershell - might need elevated rights)
4. Get information about the running servers with the __str__() method.
Example:
from nic2proxy import MultiProxyServer
interfaces = {
0: {
"bind_address": "0.0.0.0",
"bind_port": None, # None -> finds a free one
"out_address": "192.168.9.100", # Address of the NIC you want to use
"tcp_timeout": 60,
"udp_timeout": 60,
"whitelist": (),
},
1: {
"bind_address": "0.0.0.0",
"bind_port": None,
"out_address": "192.168.10.100", # Address of the NIC you want to use
"tcp_timeout": 60,
"udp_timeout": 60,
"whitelist": (),
},
}
prox = MultiProxyServer(interfaces=interfaces, logfolder="c:\\proxylogs")
prox.write_yaml_config().start_proxy()
print(prox)
# prox.kill_proxy() to kill 'em all!
Metadata
Release files for browser2requests 0.10
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 |
|---|---|---|---|---|
| browser2requests-0.10.tar.gz | 7.1 kB | Without provenance | Details for browser2requests-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browser2requests-0.10-py3-none-any.whl | Python 3 | none | any | Details for browser2requests-0.10-py3-none-any.whl |
Total release size: 15.6 kB
Release files / browser2requests-0.10.tar.gz
| Download URL | browser2requests-0.10.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cf23c8998d7da96dbe2a8504198795b0642020c94b6e90df8be51b3664af929
|
|
BLAKE2b-256 checksum How to use checksums |
05bda7d03a9aa65db9cc9f3e4cd0eb97f7da80b11ee08d66189f8185c7a9c3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / browser2requests-0.10-py3-none-any.whl
| Download URL | browser2requests-0.10-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
393932481739f65d9b2fac09005cf3c79ecf6cdc252db7ac32b3c5ddd521996a
|
|
BLAKE2b-256 checksum How to use checksums |
7c5c4b01e906f7ee59ce63a7b4497417eb8ffb1c001b83e98a8a9d5de2f7826e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for browser2requests 0.10
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.