A Python library to connect to NordVPN, works on Windows and Linux
Project description
NordVPN-connect
This repo has been forked from https://github.com/kboghe/NordVPN-switcher by Kristof Boghe.
Thank you for your work.
Description
This lib allows you to connect to a NordVPN server. Works on Windows and Linux.
Install
pip install nordvpn-connect
Simple Usage
from nordvpn_connect import initialize_vpn, rotate_VPN, close_vpn_connection
# optional, use this on Linux and if you are not logged in when using nordvpn command
settings = initialize_vpn("France") # starts nordvpn and stuff
rotate_VPN(settings) # actually connect to server
# YOUR STUFF
close_vpn_connection(settings)
Usage with credentials (Only Linux)
If when you use nordvpn
command it asks you for credentials, you'll need to provide them to the initialize_vpn
function.
from nordvpn_connect import initialize_vpn, rotate_VPN, close_vpn_connection
# optional, use this on Linux and if you are not logged in when using nordvpn command
settings = initialize_vpn("France", "USERNAME", "PASSWORD") # starts nordvpn and stuff
rotate_VPN(settings) # actually connect to server
# YOUR STUFF
close_vpn_connection(settings)
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
nordvpn-connect-0.0.6.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for nordvpn_connect-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644fbadabd99ab53ffc9ecdd6a9afab404f899c553af5a427b1e8cb92488de84 |
|
MD5 | 2db067d49f69f78758c0495d7ba4cdce |
|
BLAKE2b-256 | 542078fa6e338ed7216682208c39805f842c5cfb378ccbd4ba9c1e5a1ab43527 |