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 Distribution
mzmcosapipysdk-1.5.1.tar.gz
(8.4 kB
view details)
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.5.1.tar.gz.
File metadata
- Download URL: mzmcosapipysdk-1.5.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7755e974044f15894341cde0ba8904f13ff8498b536b0ec5fc23677eef6ad38
|
|
| MD5 |
c728a3fe76617fd84ee30efaaaf18f28
|
|
| BLAKE2b-256 |
145ea60cd4f088422b8fbd9f25105c766ac61b2dc5d522095bcab67490415550
|
File details
Details for the file mzmcosapipysdk-1.5.1-py3-none-any.whl.
File metadata
- Download URL: mzmcosapipysdk-1.5.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51cf574c5942b787cc86dde1f45fdf16dfa744232ac993eade01e13e729b5ca8
|
|
| MD5 |
334fc72eedcf3245e2c29166d5009df7
|
|
| BLAKE2b-256 |
04f526acdd14e9eff0960756243dafde2d81f626cb9938bdf2431298a4220e2a
|