Automated VPN rotation and connection system built in Python using WireGuard. The script dynamically switches VPN configurations, modifies routing rules for specific websites, and cycles through multiple VPN configs for anonymity and access control. It supports both targeted (website-specific) and global VPN connections, along with basic file manipulation for configuration handling.
Installation:
pip install free_python_vpn
1 - Install WireGuard (required): Download and install from: https://www.wireguard.com/install/ 2 - Ensure it is installed at:C:\Program Files\WireGuard\wireguard.exe 3 - Prepare VPN config files: Place .conf files inside a folder (e.g., configs/) 4 - Create an index file 5 - Import: from free_python_vpn.free_python_vpn import free_python_vpn
connect_vpn(websites, index_file, vpn_folder, temp_file, temp_file_name) Connects to a VPN while routing only specific websites through it.
free_python_vpn.connect_vpn( ["google.com", "youtube.com"], List of ips you want the vpn to work on "index.txt", .txt file to keep track of wich vpns used "vpn_folder", folder with .conf vpn files (get free from proton website: https://account.protonvpn.com/downloads) "temp.conf", Temporary .conf file "temp" Name of temporary .conf file )
connect_vpn_global(websites, index_file, vpn_folder, temp_file, temp_file_name) Connects to a VPN globally (all traffic routed).
free_python_vpn.connect_vpn_global( [], "index.txt", .txt file to keep track of wich vpns used "vpn_folder" folder with .conf vpn files (get free from proton website: https://account.protonvpn.com/downloads) "temp.conf", Temporary .conf file "temp" Name of temporary .conf file )
Metadata
Release files for free-python-vpn 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| free_python_vpn-1.0.3.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| free_python_vpn-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / free_python_vpn-1.0.3.tar.gz
| Download URL | free_python_vpn-1.0.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60892a96a518fed20f87d22a603fc3f6776830d12683bb1ff83da40acc40f52f
|
|
BLAKE2b-256 checksum How to use checksums |
4ff98dd8d51f0a91ae9aa1708318c53333e10275c54e61ed1319fa8161c858fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / free_python_vpn-1.0.3-py3-none-any.whl
| Download URL | free_python_vpn-1.0.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bef1a6f26483564e384e3265e6cb9a370b27fa850f9dc6be60dda17d99b1350
|
|
BLAKE2b-256 checksum How to use checksums |
2b2509fa5e710fe545141f93cc3a0508c456c2fe012b179aa102d9998a71e101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|