Skip to main content

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


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.1a3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

yggdrasilctl-0.0.1a3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file yggdrasilctl-0.0.1a3.tar.gz.

File metadata

  • Download URL: yggdrasilctl-0.0.1a3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5

File hashes

Hashes for yggdrasilctl-0.0.1a3.tar.gz
Algorithm Hash digest
SHA256 845d71908ee1edfe35d76320a1be42ab26faf013a23043b746bc600cb93896b1
MD5 d598026d1a3cd8d53326d26ddc2ebb93
BLAKE2b-256 d761fcedb7fc27f0c45272f9dada73b97235d426707091db0b6e1e64b9ca63f1

See more details on using hashes here.

File details

Details for the file yggdrasilctl-0.0.1a3-py3-none-any.whl.

File metadata

  • Download URL: yggdrasilctl-0.0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5

File hashes

Hashes for yggdrasilctl-0.0.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 04e10b12564e919e367206395d4c6e67115822d95e64f3bcf943598fe9cf7ec3
MD5 c4df25552331d1b800b174ce6aeffce5
BLAKE2b-256 b7bf0c76d4b0680ab9310055d290fa2a5832c3780db68e50e3f68fb3ea760fd5

See more details on using hashes here.

Supported by

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