A wrapper library to facilitate the access to Outline VPN as well as its Prometheus APIs on Outline VPN Servers.
Project description
Outline API
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4739f308a7f67ff60b37d89f53bb33c9399c457d8802aef3f63176ab7fd4f178
|
|
| MD5 |
869259708c119043384f81b7d67c517d
|
|
| BLAKE2b-256 |
79439bc737e8e777d5c1b996c2326805b75a7f4cc12928351664ada07a5741c2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a5fa948830d49f1f89d6f23d3e5946159e64c4ffbffb62e1b80f2e56ef3bb9a
|
|
| MD5 |
e5990e076ebe345fe1cc4de0ace16543
|
|
| BLAKE2b-256 |
274e43958f1b27f25a70506d0d509ff90233cba6b7fe4d1ebfc1c49548997244
|