Skip to main content

mumuipc.py

Python SDK for MumuPlayer IPC.

GitHub Actions Workflow Status Python PyPI version Coverage Status License

Usage

Install the package using pip: pip install mumuipc.py

from pathlib import Path

from PIL import Image
from mumuipc import MuMuPlayer

# Assuming the path and index of the simulator
emu_path = Path(r"C:\Program Files\Netease\MuMuPlayer-12.0")
emu_index = 0

# Create an instance of MuMuPlayer
player = MuMuPlayer(emu_path, emu_index)

# capture screenshots
screenshot = player.ipc_capture_display(0)

if screenshot is not None:
    screenshot_image = Image.fromarray(
        screenshot.reshape(player.resolution[1], player.resolution[0], 4), "RGBA"
    )
    screenshot_image.save("screenshot.png")
    print("Screenshot has been saved as screenshot.png")
else:
    print("Unable to capture screenshots")

# Disconnect the connection from the simulator
player.ipc_disconnect()

Platform

Only Windows is supported?

Metadata

Release files for mumuipc.py 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mumuipc.py 0.0.3
File Size Uploaded
mumuipc_py-0.0.3.tar.gz 18.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mumuipc.py 0.0.3
File Interpreter ABI Platform
mumuipc_py-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 34.8 kB

Release files / mumuipc_py-0.0.3.tar.gz

Download URL mumuipc_py-0.0.3.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72407499d9d720ccebfd0fed982149d1138db1154bd5d2d3239cd48dab7b3d53
BLAKE2b-256 checksum
How to use checksums
c2a17733a194d2611650829a7b7fa8a28edce3917f5baf3151af12062803f05a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release files / mumuipc_py-0.0.3-py3-none-any.whl

Download URL mumuipc_py-0.0.3-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cd1137a2786a43cabe85db561c76f50f8873671f2c310ba76e3c5faad720356
BLAKE2b-256 checksum
How to use checksums
b67541c9f1da90457534251d1fb802ea9af8b64a8c5d795e87a2d9655049aaa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page