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",
cert_sha256="4EFF7BB90BCE5D4A172D338DC91B5B9975E197E39E3FA4FC42353763C4E58765")
# 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, 1000 * 1000 * 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-4.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for outline_vpn_api-4.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3559b731c08dfa8e749fbf1b5f02d2b6e3a924859ae6591b500566bee50ffff6 |
|
MD5 | 903a5fe156d3d2b5b5dfaa12544074fe |
|
BLAKE2b-256 | c58dcfc830a77baa3039584c74e1da8e3b8c20e6cc67244e6e64b90713ec3f9a |