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
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
yctl-1.0.0.tar.gz
(5.3 kB
view details)
Built Distribution
yctl-1.0.0-py3-none-any.whl
(5.4 kB
view details)
File details
Details for the file yctl-1.0.0.tar.gz
.
File metadata
- Download URL: yctl-1.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840f1051fffc2b50db7e7bc74c3ccee6756e7944ebe522cb239dfad4480cffc9 |
|
MD5 | 919d7dbc5c54c0b1bb0205a1b5183668 |
|
BLAKE2b-256 | f94027d1f2c12459469604c901d1ecc15fabf2dbfff6b3b1d6de14d1011b00c2 |
File details
Details for the file yctl-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: yctl-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f7f8e4b5f4484d9a06d3a8cba5b1a1651e11b5e6727f1d554e6b5f8c1fccac |
|
MD5 | 6f5126a4115a531faa5b2ee102e03e48 |
|
BLAKE2b-256 | 90fa9cb0a2a0a4868115fdcf5ee1e78b1e1d66e64c7e145567af7c56b24b278f |