Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

molanp/mcsmapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

107 Commits

Repository files navigation

MCSM API

Supported MCSManager Versions Python Version PyPI Downloads Ask DeepWiki

English|Chinese Simplified

Documentation

📄 Docs: docs

💡 Example: example

Introduction

mcsmapi is a PyPI package based on MCSManager, designed to simplify interactions with the MCSM API.

With this library, you can more easily access and operate the various features provided by MCSM.

Installation

You can install mcsmapi using pip:

pip install mcsmapi

If you need the latest build files, please visit Actions

Supported Features

  • Dashboard data (Overview)
  • User management (User)
  • Instance management (Instance)
  • Daemon management (Daemon)
  • File management (File)
  • Image management (Image)

Supported MCSM Versions

MCSM Version Support Status
10.x

Quick Example

from mcsmapi import MCSMAPI
# Initialize
mcsm = MCSMAPI("https://example.com") # https or http required
# Log in with username and password (API permissions depend on the account permissions)
mcsm.login("username", "password")
# Log in with API key (API permissions depend on the API key permissions)
mcsm.login_with_apikey("apikey")
# Get dashboard data
overview = mcsm.overview()
overview_data = overview.overview()
# Get MCSM version
mcsm_version = overview_data.version

Contributing

If you encounter any issues or have suggestions for improvements, feel free to submit an Issue or create a Pull Request.

License

mcsmapi is licensed under the MIT License.

Please refer to the LICENSE file for more details.

About

Shortcut the pypi package of MCSManager./快捷操作MCSManager的pypi包

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

Languages

AltStyle によって変換されたページ (->オリジナル) /