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 Pages
Usage
A quick example of creating a client:
import asyncio
from wg_easy_api_wrapper import Server
async def main():
async with Server("http://wg.example.com:51821", "SuPerSecret_pass") as server:
await server.create_client("client_name")
asyncio.run(main())
Or a slightly more complicated way:
import asyncio
import aiohttp
from wg_easy_api_wrapper import Server
async def main():
async with aiohttp.ClientSession() as session:
server = Server("http://wg.example.com:51821", "SuPerSecret_pass", session)
await server.login()
await server.create_client("client_name")
asyncio.run(main())
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.9.tar.gz
(15.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wg_easy_api_wrapper-1.0.9.tar.gz.
File metadata
- Download URL: wg_easy_api_wrapper-1.0.9.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74d2d2eff1a961847c8a14e293000e7d9d273f31c426e0b6baff087accd30f63
|
|
| MD5 |
fbc02004173bd17529a1c0fc1e9f9f5b
|
|
| BLAKE2b-256 |
855a1f3919fedb059b6b1a105dc621e4f1435fdb69c2dd6e1b67010162fb2c7f
|
File details
Details for the file wg_easy_api_wrapper-1.0.9-py3-none-any.whl.
File metadata
- Download URL: wg_easy_api_wrapper-1.0.9-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25180df31f2e691a64d9c18c0121722b43c90adbd3c9eb3f6eb959fc012a919b
|
|
| MD5 |
d8a3aa25c89667c4e245ab9ca379783a
|
|
| BLAKE2b-256 |
d9a6408a75a7d5da61a4e5f53d8b76232f2d4dfbf7700c760159874c34f19c50
|