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.4.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mzmcosapipysdk-1.4.0-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

Hashes for mzmcosapipysdk-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddcacc8b5a8a9d0baeff990f20c06e65b7016ec903e216e8c5f922b2fea90f67
MD5 3ad234f279bf1a05158a0a764985cc57
BLAKE2b-256 813983c09b89b920f5745d37b2f5577213db656abb0f0cb05d7fae82eb2e726e

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