Python SDK for MumuPlayer IPC.
Project description
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?
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 Distribution
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
File details
Details for the file mumuipc_py-0.0.3.tar.gz.
File metadata
- Download URL: mumuipc_py-0.0.3.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72407499d9d720ccebfd0fed982149d1138db1154bd5d2d3239cd48dab7b3d53
|
|
| MD5 |
e9d491634387c094fac77e8d1861b627
|
|
| BLAKE2b-256 |
c2a17733a194d2611650829a7b7fa8a28edce3917f5baf3151af12062803f05a
|
Provenance
The following attestation bundles were made for mumuipc_py-0.0.3.tar.gz:
Publisher:
package.yml on EvATive7/mumuipc.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mumuipc_py-0.0.3.tar.gz -
Subject digest:
72407499d9d720ccebfd0fed982149d1138db1154bd5d2d3239cd48dab7b3d53 - Sigstore transparency entry: 661315388
- Sigstore integration time:
-
Permalink:
EvATive7/mumuipc.py@b7344b6186232941e7b40a4395eb6d5b02309386 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/EvATive7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@b7344b6186232941e7b40a4395eb6d5b02309386 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mumuipc_py-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mumuipc_py-0.0.3-py3-none-any.whl
- Upload date:
- Size: 15.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 |
9cd1137a2786a43cabe85db561c76f50f8873671f2c310ba76e3c5faad720356
|
|
| MD5 |
398e4d96c1bfa203ed637cba842cfde3
|
|
| BLAKE2b-256 |
b67541c9f1da90457534251d1fb802ea9af8b64a8c5d795e87a2d9655049aaa7
|
Provenance
The following attestation bundles were made for mumuipc_py-0.0.3-py3-none-any.whl:
Publisher:
package.yml on EvATive7/mumuipc.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mumuipc_py-0.0.3-py3-none-any.whl -
Subject digest:
9cd1137a2786a43cabe85db561c76f50f8873671f2c310ba76e3c5faad720356 - Sigstore transparency entry: 661315395
- Sigstore integration time:
-
Permalink:
EvATive7/mumuipc.py@b7344b6186232941e7b40a4395eb6d5b02309386 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/EvATive7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@b7344b6186232941e7b40a4395eb6d5b02309386 -
Trigger Event:
push
-
Statement type: