Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nordvpn-connect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nordvpn-connect

A Python library to connect to NordVPN, works on Windows and Linux

  • 0.0.7
  • PyPI
  • Socket score

Maintainers
1

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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc