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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nordvpn-connect-0.0.7.tar.gz.
File metadata
- Download URL: nordvpn-connect-0.0.7.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd0caa59302b62140d0fdb5e23f376ec9992ea16c48de039a82628781b56ae38
|
|
| MD5 |
4812f9e9e17a3b082dc124968a0f3e4c
|
|
| BLAKE2b-256 |
16f05ed2e84e43e54b7cdb1821414622ac6885277da35adcf2d6bb53cde93796
|
File details
Details for the file nordvpn_connect-0.0.7-py3-none-any.whl.
File metadata
- Download URL: nordvpn_connect-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c14158846407100b18a4cf2e99ed11955e090906b988bdf7f4d7a17bb7f705b
|
|
| MD5 |
123b5f5b6dab99641d51fa634720ea00
|
|
| BLAKE2b-256 |
4103346d7ca8d5141b768964b7b6b541d47aae3b2174f0c4e94f23389a19e2bf
|