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()
# Or create a key with a specific attributes
key = client.create_key(
key_id="new_key_001",
name="Yet another test key",
data_limit=1024 * 1024 * 20,
method="aes-192-gcm",
password="test",
port=2323,
)
# 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)
API documentation
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file outline_vpn_api-6.4.1.tar.gz.
File metadata
- Download URL: outline_vpn_api-6.4.1.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6103c5813189f8915ac208e6b5496f67bfa45ecc445cce5f8dc96f1223f119fc
|
|
| MD5 |
5ae4706e4386e724b9cd8c9f4bc75fdf
|
|
| BLAKE2b-256 |
34d5f01451fc26ce21673917bbf36b47e4eeb6a76e5646bd480f7383ac4556d6
|
Provenance
The following attestation bundles were made for outline_vpn_api-6.4.1.tar.gz:
Publisher:
publish.yml on jadolg/outline-vpn-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
outline_vpn_api-6.4.1.tar.gz -
Subject digest:
6103c5813189f8915ac208e6b5496f67bfa45ecc445cce5f8dc96f1223f119fc - Sigstore transparency entry: 747174061
- Sigstore integration time:
-
Permalink:
jadolg/outline-vpn-api@f8c22b963b7428f7b52a28a9a25c656ac6895a52 -
Branch / Tag:
refs/tags/v6.4.1 - Owner: https://github.com/jadolg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f8c22b963b7428f7b52a28a9a25c656ac6895a52 -
Trigger Event:
release
-
Statement type:
File details
Details for the file outline_vpn_api-6.4.1-py3-none-any.whl.
File metadata
- Download URL: outline_vpn_api-6.4.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ad1dfd80b9fc6357b21921c34526a61022f8fc8c86c2700844329c8fa557a6e
|
|
| MD5 |
60882819c1c232e4e220ea3322371b21
|
|
| BLAKE2b-256 |
5b1103f54007092a67e32f749343b112764d05427db29de5caa123cd9dfb9172
|
Provenance
The following attestation bundles were made for outline_vpn_api-6.4.1-py3-none-any.whl:
Publisher:
publish.yml on jadolg/outline-vpn-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
outline_vpn_api-6.4.1-py3-none-any.whl -
Subject digest:
7ad1dfd80b9fc6357b21921c34526a61022f8fc8c86c2700844329c8fa557a6e - Sigstore transparency entry: 747174062
- Sigstore integration time:
-
Permalink:
jadolg/outline-vpn-api@f8c22b963b7428f7b52a28a9a25c656ac6895a52 -
Branch / Tag:
refs/tags/v6.4.1 - Owner: https://github.com/jadolg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f8c22b963b7428f7b52a28a9a25c656ac6895a52 -
Trigger Event:
release
-
Statement type: