A minecraft launcher library for python
Project description
关于
这是一个基于python的Minecraft启动器库
示例
import pmccc
# launcher启动器类
launcher = pmccc.client.launcher.launcher()
# 通过环境变量寻找Java
launcher.search_java()
# .minecraft版本文件夹
minecraft = pmccc.client.minecraft.minecraft_manager("你自己的游戏目录/.minecraft")
# 添加一个离线玩家
player = launcher.player.add_player("offline", "Test")
# 创建并启动进程
# 由于subprocess库,若不指定log4j2类,则默认不输出日志
popen = launcher.launch(minecraft, "版本名",
player, log4j2=pmccc.process.log4j2())
# 等待进程结束
popen.wait()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pmccc-0.3.0-py3-none-any.whl
(23.9 kB
view details)
File details
Details for the file pmccc-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pmccc-0.3.0-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e09914997eda3a9da00ce6be6e1cf6dc5bdecae0005176cb6896c6e9d1def828
|
|
| MD5 |
f3b274cfb158fe745f00e5213ecdfa95
|
|
| BLAKE2b-256 |
80d91689a75cb960fad7afea5e1ac2a74f404509029b547f2c7334570b27008c
|
Provenance
The following attestation bundles were made for pmccc-0.3.0-py3-none-any.whl:
Publisher:
build.yml on cueavyqwp/pmccc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pmccc-0.3.0-py3-none-any.whl -
Subject digest:
e09914997eda3a9da00ce6be6e1cf6dc5bdecae0005176cb6896c6e9d1def828 - Sigstore transparency entry: 660634378
- Sigstore integration time:
-
Permalink:
cueavyqwp/pmccc@79d80f27bf514657f4433f4716fd927b547d916f -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/cueavyqwp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@79d80f27bf514657f4433f4716fd927b547d916f -
Trigger Event:
push
-
Statement type: