Skip to main content

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


Download files

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

Source Distribution

openvpn-status-parser-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openvpn_status_parser-0.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file openvpn-status-parser-0.0.3.tar.gz.

File metadata

  • Download URL: openvpn-status-parser-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for openvpn-status-parser-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5cc97706c5ea2987b47d03429f9182354112e878d2e07216677fb2363d9dbd46
MD5 e6f37ee1d71bd4824bd7f2cb098cba9c
BLAKE2b-256 cb4203d567bd837756ff2c1b2de6edadbebbcb21da814155c47217be99578e5a

See more details on using hashes here.

File details

Details for the file openvpn_status_parser-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: openvpn_status_parser-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for openvpn_status_parser-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4740e29e632b53eaf311388d3c6ee5ad974f437a6240b7c2125bc0afc80911ef
MD5 77d2001c65a9789c637f070f7f6004e1
BLAKE2b-256 b866fa2d6c86609a1ab0f3ef4fe2e646df6db6475baeb6787c86bcb9c31bfcec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page