OpenVPN status parser
Project description
Installation:
pip install openvpn-status-parser
or clone the repository and run
python setup.py install
Usage:
add status-version 3 to openvpn server configuration. Reload/restart openvpn server.
locate openvpn status file. Usually it’s under /var/run in Unix based systems.
openvpn-status-parser /var/run/openvpn/openvpn.status
Or using Python:
import pprint from openvpn_status_parser import OpenVPNStatusParser parser = OpenVPNStatusParser("/var/run/openvpn/openvpn.status") pprint.pprint(parser.connected_clients) pprint.pprint(parser.routing_table) pprint.pprint(parser.details)
License
MIT License; see LICENSE.txt for full details.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for openvpn-status-parser-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cc97706c5ea2987b47d03429f9182354112e878d2e07216677fb2363d9dbd46 |
|
MD5 | e6f37ee1d71bd4824bd7f2cb098cba9c |
|
BLAKE2b-256 | cb4203d567bd837756ff2c1b2de6edadbebbcb21da814155c47217be99578e5a |
Close
Hashes for openvpn_status_parser-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4740e29e632b53eaf311388d3c6ee5ad974f437a6240b7c2125bc0afc80911ef |
|
MD5 | 77d2001c65a9789c637f070f7f6004e1 |
|
BLAKE2b-256 | b866fa2d6c86609a1ab0f3ef4fe2e646df6db6475baeb6787c86bcb9c31bfcec |