Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

mzmcosapipysdk-1.5.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file mzmcosapipysdk-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: mzmcosapipysdk-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mzmcosapipysdk-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fdabd837299081e803c37a978f3bd2409a189d26dd3e5d9ebcd6567f18e5cc3
MD5 20924e4eb4ed389afc6415b7fddc6de3
BLAKE2b-256 09376281e1f4448c07b7423752c5d174e7d14c09bfee02df43730c43042d9bcd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page