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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: outline-api-0.0.3.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.6

File hashes

Hashes for outline-api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ff33a1852fd7f356ce173450e34f5d5912c0d7fc7dc67f5d5d4f1bfea654455c
MD5 2cc698e0e347f064aed5380235ca2629
BLAKE2b-256 5d5b8ac6af14d6d7ecd4daea628a8eb795937a23634f2ac4b1ac48b05f488d16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: outline_api-0.0.3-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.6

File hashes

Hashes for outline_api-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eb296404c07e890fc90ce552e1e74f9a2774ec9b1de32b2eefdb62b905a66b46
MD5 3e6b83c426853040bce4c7eed5409a4f
BLAKE2b-256 fd3f161436646173cd54f96202ae3de207e161f3484111a0b382b7587a72cbf2

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