
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
outline-vpn-api-async
Advanced tools
A Python API wrapper for Outline VPN
This is a fork of https://github.com/jadolg/outline-vpn-api
from outline_vpn import OutlineVPN
async def main():
# 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")
# Init the client with setting cert_sha256
await client.init(cert_sha256="4EFF7BB90BCE5D4A172D338DC91B5B9975E197E39E3FA4FC42353763C4E58765")
# Get all access URLs on the server
for key in await client.get_keys():
print(key.access_url)
# Get a single key by it id
my_cool_key = await client.get_key(key_id=1337)
print(my_cool_key.access_url)
# Create a new key
new_key = await client.create_key()
# [Optional] You can set a name to key while creating it to auto rename
new_key = await client.create_key(key_name="My cool key")
# Rename it
await client.rename_key(key_id=new_key.key_id, name="new_key")
# Delete it
await client.delete_key(key_id=new_key.key_id)
# Set a monthly data limit for a key (20MB)
await client.add_data_limit(key_id=new_key.key_id, limit_bytes=1000 * 1000 * 20)
# Remove the data limit
await client.delete_data_limit(key_id=new_key.key_id)
if __name__ == "__main__":
import asyncio
asyncio.run(main())
Install locally
pip install -e .
Fill out test.env with your test server creds
cp test.env.example test.env
Run tests
pytest
FAQs
Async Python API wrapper for Outline VPN
We found that outline-vpn-api-async demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.