wg-easy-api-wrapper

Wrapper for wg-easy API


License
GPL-3.0
Install
pip install wg-easy-api-wrapper==1.0.8

Documentation

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")