English|简体中文
mcsmapi
is a Pypi package based on MCSManager, designed to simplify interaction with MCSM API.
Through this library, you can easily access and operate various functions provided by MCSM.
You can use pip
to install mcsmapi
:
pip install mcsmapi
Here are some examples of how to use mcsmapi
:
from mcsmapi import overview
# if you have a apikey, you can use this method
client = Overview(url=" https://example.com/",apikey="your_api_key")
# if you do not have a apikey, you can use this method
client = Overview(url=" https://example.com/")
# login
client.login(username="your_username",password="your_password")
# Get dashboard data
response = client.getData()
print(response.json())
- Login (
(func) login
) - Dashboard Data (
(cls) Overview
) - User Management (
(cls) Users
) - Instance Management (
(cls) Instance
) - Daemon Management (
(cls) Daemon
) - File Management (
(cls) File
) - Image Management (
(cls) Image
)
The current version of MCSMAPI client supports the following MCSM versions:
- 10.2.1
- 10.1.0
- Python version 3.7 and above.
If you find any issues or have improvement suggestions, please feel free to submit Issue or create a Pull Request.
Please refer to LICENSE File for more information.