Skip to main content

mcsm面板控制库

Project description

MCSM-C


这是什么库

这是一个用来控制mcsm面板(主要针对我的世界服务器)的库

安装

pip install mcsmc

使用

from mcsmc import Mcsmc
mcsm=Mcsm_ctrl(url="你的mcsm面板url",token="你的mcsm面板token")
#接下来:功能介绍
mcsm.get_server_list(de_id="节点id",page=1,page_size=10) #获取服务器列表(page默认1,page_size默认10) return:tuple(执行成功?,返回结果->dict)
mcsm.start(server_id="实例id", de_id="节点id") #启动服务器 return:tuple(执行成功?,返回结果->dict)
mcsm.q_restart(server_id="实例id", de_id="节点id") #强制重启服务器 return:tuple(执行成功?,返回结果->dict)
mcsm.get_log(self, server_id="实例id", de_id="节点id", size=200) #获取日志(size默认200) return:tuple(执行成功?,返回结果->str(执行成功)|err or dict(执行失败))

注意

  • 这是一个测试版,可能会有bug,请自行测试
  • 这是一个测试版,可能会有bug,请自行测试
  • 这是一个测试版,可能会有bug,请自行测试 !!重要的话说3遍!!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcsmc-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

mcsmc-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mcsmc-0.0.2.tar.gz.

File metadata

  • Download URL: mcsmc-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for mcsmc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cb711aeccc05296d6d12f538a161171273c7dde12c45babfcfd158d4b60d2458
MD5 acf885753efe02285ebd70099fa88fb2
BLAKE2b-256 a218df0a275849f3a0ee04f5287130d92e4861d7849763746169e5a0cb423e26

See more details on using hashes here.

File details

Details for the file mcsmc-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mcsmc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for mcsmc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 499193f99b6e56d54d784f4f9c449ebe8a1a8077d86046deba5b1dc9cb37e799
MD5 05d97d1c91987e8b6c19334e885b0b8c
BLAKE2b-256 600b44e39a5082f6a287c0e16b12a11c6acf9ad32762ccea2179326a72842099

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