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.8.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for wg_easy_api_wrapper-1.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f876a1c4ce7728122397e46cbe1a57d4f3721d7a8c8aa0f3906456bfdfee0d3e |
|
MD5 | 0843521346d8e27870eefe3ca6ca37b3 |
|
BLAKE2b-256 | 2ff56af143ea84414740549b80b8cdddf83c886ff426a383e617d413ef8d1145 |
Close
Hashes for wg_easy_api_wrapper-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b25015345d818350c695e6bae3597aa349f21b477d55fb7b4e8454d3a6453213 |
|
MD5 | ecf8043e4ed0c08377d23ecc5f8cf04f |
|
BLAKE2b-256 | 56fd68f8eac67bdca9f5c4bd3c76ced8eec5faf117a5b0cec843df0033840771 |