Supported MCSManager Versions Python Version PyPI Downloads Ask DeepWiki
English|Chinese Simplified
📄 Docs: docs
💡 Example: example
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.
You can install mcsmapi using pip:
pip install mcsmapi
If you need the latest build files, please visit Actions
- Dashboard data (
Overview) - User management (
User) - Instance management (
Instance) - Daemon management (
Daemon) - File management (
File) - Image management (
Image)
| MCSM Version | Support Status |
|---|---|
| 10.x | ✅ |
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
If you encounter any issues or have suggestions for improvements, feel free to submit an Issue or create a Pull Request.
mcsmapi is licensed under the MIT License.
Please refer to the LICENSE file for more details.