Wrapper for wg-easy API
Project description
wg-easy-api-wrapper
Python module for convenient interaction with the application API wg-easy
You can see all the methods in the documentation on GitHub
Usage
A quick example of creating a client:
async with Server("wg.example.com", 51821, "SuPerSecret_pass") as server:
await server.create_client("client_name")
Or a slightly more complicated way:
async with aiohttp.ClientSession() as session:
server = Server("wg.example.com", 51821, "SuPerSecret_pass", session)
await server.login()
await server.create_client("client_name")
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
wg-easy-api-wrapper-1.0.5.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for wg-easy-api-wrapper-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81030f251c08a5eb963f9df4e14dcd721f647cfb351b3e81afe38845b8ccd42 |
|
MD5 | 1701b5351d1bb2db10181cc4132b0751 |
|
BLAKE2b-256 | d191ba65d3473222bbd6d695ecc884a53b5fee3cee7c95d1dee1d7dd487dab00 |
Close
Hashes for wg_easy_api_wrapper-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef24ad79bf7db73e787202fda9e7f4171cce672eb654a35af2d3d8097c168e8 |
|
MD5 | e57bef34146ad1b044bf2cceb415720a |
|
BLAKE2b-256 | f2ca910f8da6cda9cb6605a87be7c3cb38f7d1ebe0ad55d24d9e71f4d49eaa05 |