A part of MzmcOS Basic Equippments
Project description
MzmcOSAPIPySDK
MzmcOSAPIPySDK 是绵中方块人服务器 API 的 Python 客户端库,提供了简单易用的接口来访问服务器的各种功能。
功能特点
- 用户认证和令牌管理
- 服务器状态查询
- 玩家信息管理
- 白名单管理
- 版本控制
- 聚落信息查询
安装
使用 pip 安装 SDK:
pip install MzmcOSAPIPySDK
快速开始
查询服务器状态
from MzmcOSAPIPySDK import Info
# 创建 Info 实例
info = Info()
# 获取服务器状态
status = info.server_status()
print("服务器状态:", status)
# 获取在线玩家
online_players = info.online_players()
print("在线玩家:", online_players)
查询聚落信息
from MzmcOSAPIPySDK import EaverseAPIClient
# 创建客户端实例
client = EaverseAPIClient()
# 获取所有聚落
areas = client.get_all_areas()
print("所有聚落:", areas)
# 搜索特定聚落
search_result = client.search_area(name="中心城")
print("搜索结果:", search_result)
文档
详细文档请查看 docs 目录:
构建
python -m pip install --user --upgrade setuptools wheel
python setup.py bdist_wheel
上传
python -m twine upload --repository gitea ./dist/*
许可证
MzmcOSAPIPySDK 使用 MIT 许可证。
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mzmcosapipysdk-1.4.1-py3-none-any.whl.
File metadata
- Download URL: mzmcosapipysdk-1.4.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70be3077bf85f3bd46bddfad126dc0cec9dc64a6bc6cf976bc5977adcef067ec
|
|
| MD5 |
ba447d2afb7b88b1ece02907160a8934
|
|
| BLAKE2b-256 |
bb9ede19d3d7591aa8fd9af74e67acfc41dda670ffc8bda165e2f4e8a1e2db28
|