Skip to main content

Query and control an Yggdrasil Network node with Admin API

Project description

yctl

Control Yggdrasil node with Python.

API

Yggdrasil's control commands translated from camelCase to pythonic snake_case methods. For example, getSelf becomes Control.get_self()

Supports keepalive mode if instantiated with keepalive=True.

Example

import asyncio
import yctl

async def main():
    ctl = yctl.Control(host="127.0.0.1", port=9001, keepalive=False)
    res = await ctl.get_peers()

    for k, v in res['response']['peers'].items():
        res = await ctl.debug_remote_get_self(v['key'])
        print(res)

asyncio.run(main())

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

yctl-1.0.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

yctl-1.0.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

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