Skip to main content

A wrapper library to facilitate the access to Outline VPN as well as its Prometheus APIs on Outline VPN Servers.

Project description

Outline API

PyPI version

Outline API is a wrapper api written in python to access Outline VPN API services. Outline VPN APIs are used for Outline keys maintenance as well as for monitoring purposes. The package also provides wrappers to access Prometheus on the Outline VPN.

Install

use pip to install the package:

pip install outline-api

Using package

import the package and cerate a management object.

from outline_api import (
    Manager,
    get_key_numbers, 
    get_active_keys)


apiurl = "http://127.0.0.1/apikey"
apicrt = "apicert"
manager = Manager(apiurl=apiurl, apicrt=apicrt)

new_key = manager.new()
if new_key is not None:
    print(new_key)

keys = get_key_numbers("127.0.0.1", "999")
print(keys)

active_keys = get_active_keys("127.0.0.1", "999")
print(active_keys)

CHANGELOG

0.0.5 (2021-10-29)

  • Add custom error exceptions

0.0.4 (2021-10-27)

  • Fix timeout values

0.0.3 (2021-07-30)

  • Fix return values in case of error

0.0.1 (2020-08-01)

  • First version

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

outline-api-0.0.5.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

outline_api-0.0.5-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file outline-api-0.0.5.tar.gz.

File metadata

  • Download URL: outline-api-0.0.5.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for outline-api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 044c58d173f9b1a2cfeb9cb29b4512b02e5ef046392f0808754f4092bf817734
MD5 dbf6bf09a774982396f5be2735dac85b
BLAKE2b-256 c30d8430eb27674c6d136e6f8979beb80cde84faa2919f3bf34b65f89c56f347

See more details on using hashes here.

File details

Details for the file outline_api-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: outline_api-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for outline_api-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b7036f4343411689e403f448eaabfee0f31e53d7b569f46179212fb3b2926003
MD5 d3e1e9cbff3ce5c71f9fe9c91c19699c
BLAKE2b-256 00fc7aa3032a724622b76b321be6e5ac7b7db917a0581df0b728fc519ff3551e

See more details on using hashes here.

Supported by

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