Yggdrasil管理API的包装器
yggdrasilctl的Python项目详细描述
这个库为Yggdrasil管理API提供了一个包装器。在
安装
对于Linux
pip3 install yggdrasilctl
对于Windows
pip install yggdrasilctl
使用
同步版本
frompprintimportpprintfromyggdrasilctl.syncimportAdminAPI,APIErrorapi=AdminAPI()#unless otherwise specified it will connects to localhost:9001try:info=api.getSelf()exceptAPIErrorase:print(e)else:pprint(info)
异步版本
^{pr2}$API方法的详细说明
有关详细信息,请参见管理API的documentation。在
链接
此库位于PyPI
- 项目
标签: