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.7.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for wg-easy-api-wrapper-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f72a35a984e912a58873e27ddc3bb2ed460a9f6dfc8678299f8ad85acca1d041 |
|
MD5 | 80804b6ab17b1b7a381888c20e29cf80 |
|
BLAKE2b-256 | aabd503497f5a2ee7b8c4d59b5f2a728f8b770068f2c3bc4385ee9d9610ba86b |
Close
Hashes for wg_easy_api_wrapper-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f8e518e0c1cdcf964ea8284906a84fc5fe821233902e617049f3441874ba9e5 |
|
MD5 | f480868ad9b4f1ff576990db00add607 |
|
BLAKE2b-256 | 477e92f41781b742d087c5b2759e22a5efe6f3391b0920b4e52ce8f120dc26d7 |