Skip to main content

CML - cm Minecraft Launcher - 纯代码 Minecraft 启动器

Project description

CML - cm Minecraft Launcher

简洁高效的 Minecraft 启动器,支持 GUI 和纯代码 API 调用。

功能特性

  • 账户管理(离线登录)
  • 版本管理(安装/删除/选择)
  • 模组管理(扫描/启用/禁用/删除)
  • Modrinth 模组/光影搜索下载
  • 自动 Java 检测
  • 纯代码 API:可通过 import cml 在 Python 中调用
  • 深色主题 UI(GUI 版本)

安装

方式一:pip 安装

pip install cml-launcher

方式二:开发模式

git clone <repo-url>
cd cml-launcher
pip install -e .

使用

GUI 启动器

cml

python -m cml

纯代码 API

import cml

# 启动游戏
cml.launch_game("1.20.1")  # 通过版本名启动
cml.launch_game(jar_path="C:/MC/versions/1.20.1/1.20.1.jar")  # 通过 jar 绝对路径启动

# 下载游戏
cml.download_version("1.20.1")  # 下载到默认目录
cml.download_version("1.20.1", "D:/MC")  # 下载到指定目录

# 版本管理
cml.list_versions()  # 获取可下载版本
cml.get_versions()  # 获取已安装版本
cml.set_version("1.20.1")  # 设置当前版本

# 其他
cml.get_java_path()  # 获取 Java 路径

系统要求

  • Python 3.8+
  • Windows/Linux/macOS
  • Minecraft 游戏文件(首次启动会自动下载)

依赖

  • minecraft-launcher-lib >= 1.4.0

GUI 版本额外依赖:

  • customtkinter >= 5.2.0
  • Pillow >= 10.0.0

License

MIT

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

cml_launcher-1.0.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

cml_launcher-1.0.1-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file cml_launcher-1.0.1.tar.gz.

File metadata

  • Download URL: cml_launcher-1.0.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cml_launcher-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cd31e3690577e992914264c046731e80e0d46ac74c22ebb1ce9a45ea881c0f62
MD5 3f62cd5b5eaed77678e0968ed092e9bd
BLAKE2b-256 37f3b1c1be3d081978d99cfeb89a4cf91d6422c20ba0edefe758dad475f22226

See more details on using hashes here.

File details

Details for the file cml_launcher-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: cml_launcher-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cml_launcher-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03eb4a5893dbb94b1b96da170d536458ccc95d19892c7b9304f939d11d6718ef
MD5 c2d7198bff7ed546d0f7cdc597fcbbef
BLAKE2b-256 fe87610447e3cdd97cae2d07bf70d86bedd580f5fc08a4840624922650f4609d

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