Skip to main content

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


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.8.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

wg_easy_api_wrapper-1.0.8-py3-none-any.whl (16.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page