Async Outline manager sdk
Thanks for the reverse engineering and docs project:
https://github.com/jadolg/outline-vpn-api
Autor: @jadolg
Example:
from outline_sdk import Service
service = Service(
url="https://127.0.0.1:51083/xlUG4F5BBft4rSrIvDSWuw/",
cert_sha256="4EFF7BB90BCE5D4A172D338DC91B5B9975E197E39E3FA4FC42353763C4E58765"
)
for key in await service.get_keys():
print(key)
new_key = await service.create_key()
await service.rename_key(new_key.id, "new_key")
await service.delete_key(new_key.id)
await service.set_data_limit(new_key.id, 1000 * 1000 * 20)
await service.delete_data_limit(new_key.id)