pyvpnc
pyvpnc is a Python connector for vpnc, a Cisco VPN concentrator/router client. The vpnc daemon requires elevated permissions to run; you will be prompted for your admin/sudo password if needed.
Installation
First, install vpnc. On Debian/Ubuntu:
apt-get install vpnc
On OSX:
brew install vpnc
Then install pyvpnc using pip:
pip install vpnc
Usage
from vpnc import VPNC
vpn_client = VPNC(config={
"IPSec_ID": "my IPSec ID",
"IPSec_gateway": "my.gateway.com",
"IPSec_secret": "my IPSec secret",
"Xauth_username": "my Xauth username",
"Xauth_password": "my Xauth password",
"IKE_Authmode": "psk"
})
with vpn_client.vpn():
# do stuff on the VPN!
Tests
Unit tests are in the test/ directory.
Metadata
Release files for vpnc 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vpnc-0.2.0.tar.gz | 3.8 kB | Without provenance | Details for vpnc-0.2.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vpnc-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for vpnc-0.2.0-py3-none-any.whl |
| vpnc-0.2.0-py2-none-any.whl | Python 2 | none | any | Details for vpnc-0.2.0-py2-none-any.whl |
Total release size: 10.8 kB
Release files / vpnc-0.2.0.tar.gz
| Download URL | vpnc-0.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18b92cc0f11b46ee751ed0b6cdd8889d24dc5b320c7da7c792f99fa3b404d3ac
|
|
BLAKE2b-256 checksum How to use checksums |
8498b03de3a433222474db25046a93555bb21d65939de5ae6bd17a1a26eb53b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.17
|
Release files / vpnc-0.2.0-py3-none-any.whl
| Download URL | vpnc-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73cdb1113f926cecd8fbd01fb79c73d883dcb766d64000a552a33fe61481e16e
|
|
BLAKE2b-256 checksum How to use checksums |
c08c498a3f5b100e13d947b8eda64410c3b37d8398832d14f6393a6d18aa225d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.17
|
Release files / vpnc-0.2.0-py2-none-any.whl
| Download URL | vpnc-0.2.0-py2-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
828f9b6d04efcc7bff79ac108a4f88fbb015bb5ef69c9ddfac8861426a95402f
|
|
BLAKE2b-256 checksum How to use checksums |
a65a7d0cb0c2777328fc29857cfecd057faf4cfa29a2b6387aaf8989be54c448
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.17
|
Security for vpnc 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.