Skip to main content

mcsm面板控制库

Project description

MCSM-C


这是什么库

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

安装

pip install mcsmc

使用

import mcsmc.Mcsm
mcsm=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遍!!

乐子

我说到0.0.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.3.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.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcsmc-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b833f82ef26028b6ac84245a7498e402ac34f0f05b66bb4db7a296249f052296
MD5 5f43ce43910c9539fe8ba1003360bedd
BLAKE2b-256 ca30405d3c705157add2d853c8bcb94a096792d0385bc7be62e5dc75ed95ce8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcsmc-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7d90403f68edb334ebd03b4346865968db19987479a3d112632eaab10fdc8744
MD5 bde3c2d17e7cc1e721496d573982d11d
BLAKE2b-256 6a44707627ff25c7a0ae28735e967347657d6395c2a372d0aab58b81ccf35e51

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