Skip to main content

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

Project description

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.

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

mcsmapi-0.1.8b4.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcsmapi-0.1.8b4-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file mcsmapi-0.1.8b4.tar.gz.

File metadata

  • Download URL: mcsmapi-0.1.8b4.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcsmapi-0.1.8b4.tar.gz
Algorithm Hash digest
SHA256 c3a459ae00d29c80b416256785a42ad163f2d9cde6fec771932d44b93293ff4e
MD5 733766b3ef37cd0eb5d7ba7641b2dce7
BLAKE2b-256 63ed7880f8b5b6d565cf212c60c61e25d3c05504e72eab4c9ece91e747f07f94

See more details on using hashes here.

File details

Details for the file mcsmapi-0.1.8b4-py3-none-any.whl.

File metadata

  • Download URL: mcsmapi-0.1.8b4-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcsmapi-0.1.8b4-py3-none-any.whl
Algorithm Hash digest
SHA256 12fafc798e27fa1118910ee829808d728613ec67033e2879a08a708a01b71f17
MD5 9d000053691cdd8c577fe6488e2bebed
BLAKE2b-256 adf5d98f5465ab4ab1636b1d4dac89c14292a4d484dff3df8f2f37c39e09cf85

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