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 package
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.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.1.tar.gz
(5.9 kB
view details)
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.1.tar.gz.
File metadata
- Download URL: outline-api-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26fea261d4c72ccab88b96b0ce10926ef57d24c7145adae11c7636262287220e
|
|
| MD5 |
db70b512d24a7b456def6cc6ad12bbf1
|
|
| BLAKE2b-256 |
49e3b71d8a8eaa133687b5a53a04706c9c404f84afb06a2e04fa448536dc9368
|
File details
Details for the file outline_api-0.0.1-py3-none-any.whl.
File metadata
- Download URL: outline_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
524a0b372ed96f6ea1be84d6940f4cd0e106874750d9697fafeafc2dbfffeab5
|
|
| MD5 |
402f18ffde0a7555ecc98377b391e640
|
|
| BLAKE2b-256 |
124a077dee7a229894a562f092083a63e0479d866eecd1a79f0b28cc8ca40f5f
|