Skip to main content

A minecraft launcher library for python

Project description

pmccc

PyPI version Python version license

关于

这是一个基于pythonMinecraft启动器库

示例

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


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

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

pmccc-0.3.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

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

Hashes for pmccc-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e09914997eda3a9da00ce6be6e1cf6dc5bdecae0005176cb6896c6e9d1def828
MD5 f3b274cfb158fe745f00e5213ecdfa95
BLAKE2b-256 80d91689a75cb960fad7afea5e1ac2a74f404509029b547f2c7334570b27008c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmccc-0.3.0-py3-none-any.whl:

Publisher: build.yml on cueavyqwp/pmccc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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