Skip to main content

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.

Release files for openvpn-status-parser 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openvpn-status-parser 0.0.3
File Size Uploaded
openvpn-status-parser-0.0.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openvpn-status-parser 0.0.3
File Interpreter ABI Platform
openvpn_status_parser-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / openvpn-status-parser-0.0.3.tar.gz

Download URL openvpn-status-parser-0.0.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5cc97706c5ea2987b47d03429f9182354112e878d2e07216677fb2363d9dbd46
BLAKE2b-256 checksum
How to use checksums
cb4203d567bd837756ff2c1b2de6edadbebbcb21da814155c47217be99578e5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / openvpn_status_parser-0.0.3-py3-none-any.whl

Download URL openvpn_status_parser-0.0.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4740e29e632b53eaf311388d3c6ee5ad974f437a6240b7c2125bc0afc80911ef
BLAKE2b-256 checksum
How to use checksums
b866fa2d6c86609a1ab0f3ef4fe2e646df6db6475baeb6787c86bcb9c31bfcec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page