Skip to main content

Just a Python module suitable to use multiple OpenVPN connections at same time

Project description

How to use:

from vpnocchio import VPN, init_logging
from threading import Thread


# set your dir with ovpn files, default is:
VPN.conf_dir = '/etc/openvpn
# set minimum seconds must elapse between reconnects
VPN.min_time_before_reconnect = 30

credentials = [('usr1', 'pwd1', 'Germany'),
               ('usr1', 'pwd2', 'Spain')]

def do_something(*args):
    vpn = VPN(*args)
    for one in range(2):
        # it has requests inside
        response = vpn.get('')'Hooray, here is desired data: %s',  response.text)

for username, password, match_config_name in credentials:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for VPNocchio, version 0.0.24
Filename, size File type Python version Upload date Hashes
Filename, size VPNocchio-0.0.24.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page