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.6 (2023-02-28)
- Add an optional label argument for new keys
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.6.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file outline-api-0.0.6.tar.gz
.
File metadata
- Download URL: outline-api-0.0.6.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d59bba7648f7d55d509d0cffbcf78a05c742ab4d1d72a5028bf267794d7507 |
|
MD5 | 0418bb181c21b6ed53ca0dffa0d352d2 |
|
BLAKE2b-256 | 8d33fdf6a83395adfd7e56a5d83d454c49b30c9cb097f885ca16221af031545b |
File details
Details for the file outline_api-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: outline_api-0.0.6-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e276020b9520b515569b8604de3bd6b30a2bfdb304afceec88d52a84c15f28 |
|
MD5 | e9e0ac31c5abe96e95f0e15b8f5d6c9e |
|
BLAKE2b-256 | abc96d72b55b465c4471ecee3d3785c5b51d419b5d08531026ad5fa2fc535a23 |