Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Configuration and connection tools for PIA VPN routes on Linux

Project Description

Configures NetworkManager keyfiles for OpenVPN routes to Private Internet Access servers.

pypia automatically detects your operating system. Currently the supported distros are Fedora, Manjaro, Ubuntu, Elementary OS, Antergos, Linuxmint, openSUSE, Kali, Arch, CentOS.

In addition to configuring NetworkManager keyfiles, this module also can be invoked to ping all PIA endpoints, connect to the fastest, connect to a random server, etc. Use pypia –help for further descriptions and usage.

usage: [-h] [-i] [-p] [-s] [-r {us,all,int}] [-f] [-d]

optional arguments:
-h, --help show this help message and exit
-i, --initialize
 configure pia vpn routes as networkmanager keyfiles. use this flag on first run and anytime you want to refresh pia vpn routes
-p, --ping ping each vpn server and list latencies
-s, --shuffle connect to or shuffle a random vpn
-r, --region “us” for US only, “int” for non-US, “all” for worldwide
-f, --fastest connect to network with lowest ping latency
-d, --disconnect
 disconnect current PIA vpn connection

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(20.5 kB) Copy SHA256 Hash SHA256
Source Nov 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting