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.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.4.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

outline_api-0.0.4-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: outline-api-0.0.4.tar.gz
  • Upload date:
  • Size: 18.5 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.4.tar.gz
Algorithm Hash digest
SHA256 4739f308a7f67ff60b37d89f53bb33c9399c457d8802aef3f63176ab7fd4f178
MD5 869259708c119043384f81b7d67c517d
BLAKE2b-256 79439bc737e8e777d5c1b996c2326805b75a7f4cc12928351664ada07a5741c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: outline_api-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5fa948830d49f1f89d6f23d3e5946159e64c4ffbffb62e1b80f2e56ef3bb9a
MD5 e5990e076ebe345fe1cc4de0ace16543
BLAKE2b-256 274e43958f1b27f25a70506d0d509ff90233cba6b7fe4d1ebfc1c49548997244

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