Wrapper for Yggdrasil Admin API
Project description
This library provides a wrapper for Yggdrasil Admin API.
Installation
for Linux
pip3 install yggdrasilctl
for Windows
pip install yggdrasilctl
Usage
sync version
from pprint import pprint
from yggdrasilctl.sync import AdminAPI, APIError
api = AdminAPI() #unless otherwise specified it will connects to localhost:9001
try:
info = api.getSelf()
except APIError as e:
print(e)
else:
pprint(info)
async version
import asyncio
from pprint import pprint
from yggdrasilctl import AdminAPI, APIError
async def main():
api = AdminAPI()
try:
info = await api.getSelf()
except APIError as e:
print(e)
else:
pprint(info)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Detailed description of API methods
For details see documentation of Admin API.
Links
Yggdrasil project
This library on PyPI
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
yggdrasilctl-0.0.1a4.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for yggdrasilctl-0.0.1a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f86cc8ecf819e360463a8d8773e770648900a2085840050966a4597e3d2445c2 |
|
MD5 | f38781b4f2c426019202ba15120d5b9e |
|
BLAKE2b-256 | 7db999ea6863397e3bdd9e95111cf7d8e527fe0f0b1d5c651eccddd25ee3fa17 |