A wrapper library to facilitate the access to Outline VPN as well as its Prometheus APIs on Outline VPN Servers.
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.
use pip to install the package:
pip install outline-api
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)
- Add an optional label argument for new keys
- Add custom error exceptions
- Fix timeout values
- Fix return values in case of error
- First version
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for outline_api-0.0.6-py3-none-any.whl