Python API wrapper for Outline VPN
Project description
outline-vpn-api
A Python API wrapper for Outline VPN
How to use
from outline_vpn.outline_vpn import OutlineVPN
# Setup the access with the API URL (Use the one provided to you after the server setup)
client = OutlineVPN(api_url="https://127.0.0.1:51083/xlUG4F5BBft4rSrIvDSWuw")
# Get all access URLs on the server
for key in client.get_keys():
print(key.access_url)
# Create a new key
new_key = client.create_key()
# Rename it
client.rename_key(new_key.key_id, "new_key")
# Delete it
client.delete_key(new_key.key_id)
# Set a monthly data limit for a key (20MB)
client.add_data_limit(new_key.key_id, 1024 * 1024 * 20)
# Remove the data limit
client.delete_data_limit(new_key.key_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
outline-vpn-api-2.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for outline_vpn_api-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c03fce7bec2293a2f49228b56c8aa24852fa201fdc8d983e93b8a90a60ae0d7b |
|
MD5 | e91ecaf68ad059f0bf1bcb58a5ae19f8 |
|
BLAKE2b-256 | 7d256a98bc1dbf2ecf8b4ff62e7b67c6f877085a77b191e7088a208e93cd4de9 |