English|Chinese Simplified
Important
We need your help, the documentation for this project has not been written yet, if you are willing, please submit pr to help us write the documentation.
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
- 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")
# 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()
# Get MCSM version
mcsm_version = mcsm.overview().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.