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
Metadata
Release files for outline-api 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| outline-api-0.0.6.tar.gz | 19.1 kB | Without provenance | Details for outline-api-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| outline_api-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for outline_api-0.0.6-py3-none-any.whl |
Total release size: 38.5 kB
Release files / outline-api-0.0.6.tar.gz
| Download URL | outline-api-0.0.6.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4d59bba7648f7d55d509d0cffbcf78a05c742ab4d1d72a5028bf267794d7507
|
|
BLAKE2b-256 checksum How to use checksums |
8d33fdf6a83395adfd7e56a5d83d454c49b30c9cb097f885ca16221af031545b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / outline_api-0.0.6-py3-none-any.whl
| Download URL | outline_api-0.0.6-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50e276020b9520b515569b8604de3bd6b30a2bfdb304afceec88d52a84c15f28
|
|
BLAKE2b-256 checksum How to use checksums |
abc96d72b55b465c4471ecee3d3785c5b51d419b5d08531026ad5fa2fc535a23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for outline-api 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.