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
Metadata
Release files for cml-launcher 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cml_launcher-1.0.1.tar.gz | 18.3 kB | Without provenance | Details for cml_launcher-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cml_launcher-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for cml_launcher-1.0.1-py3-none-any.whl |
Total release size: 42.4 kB
Release files / cml_launcher-1.0.1.tar.gz
| Download URL | cml_launcher-1.0.1.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd31e3690577e992914264c046731e80e0d46ac74c22ebb1ce9a45ea881c0f62
|
|
BLAKE2b-256 checksum How to use checksums |
37f3b1c1be3d081978d99cfeb89a4cf91d6422c20ba0edefe758dad475f22226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / cml_launcher-1.0.1-py3-none-any.whl
| Download URL | cml_launcher-1.0.1-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03eb4a5893dbb94b1b96da170d536458ccc95d19892c7b9304f939d11d6718ef
|
|
BLAKE2b-256 checksum How to use checksums |
fe87610447e3cdd97cae2d07bf70d86bedd580f5fc08a4840624922650f4609d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for cml-launcher 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.