一个python库,用于与狡猾的Web minecraft服务器控制面板对话
crafty-client的Python项目详细描述
狡猾的客户
关于
Crafty Client是一个用于与Crafty Web MC server control panel接口的pypi(pip)包。在
它是从头开始编写的,基于请求和urllib3,由kevdagoat
安装
确保系统上安装了python3和pip包管理器。在
对于windows(conda)环境
pip install crafty-client
对于linux(apt/yum/rpm/etc.)环境
^{pr2}$使用
示例:
fromcrafty_clientimportCraftyWebURL="https://127.0.0.1:8000"# The location of the crafty-web webserverAPI_TOKEN="<place token here>"# Your crafty Web API token, printed in the console at installation.cweb=CraftyWeb(URL,API_TOKEN)print(cweb.list_mc_servers())
- 项目
标签: