Skip to main content

Automating memu emulator with pandas

pip install pandasmemuc

Tested against Windows 10 / Python 3.10 / Anaconda

Memu Player and at least one Android instance must be installed https://www.memuplay.com/

Most of the command line stuff already implemented, documentation soon

https://www.memuplay.com/blog/memucommand-reference-manual.html

https://www.memuplay.com/blog/wp-content/uploads/2016/02/MEmu-Command-Line-Management-Interface-Version-4.3.20_OSE.pdf

Example:

from pandasmemuc import MeMuc, phoneconfig
import pandas as pd

phoneconfig.phone_dataframe = pd.read_pickle("c:\\allphonedata.pkl") # optional
phoneconfig.mac_address_prefix = "52:54:00" 
df = MeMuc()
# df.create_vm_96().update_status()
df.import_vm(path=r"C:\ProgramData\anaconda3\envs\dfdir\memuimage.ova", name="mem38")
df.iloc[-1].bb_start()
df.iloc[-1].bb_installapp(r"C:\Users\hansc\Downloads\spotify-8-8-50-466.apk")
df.iloc[-1].bb_startapp('com.spotify.music')

# spoti = df.get_ui_automator_df(2)
# spoti = spoti.loc[(spoti.bb_resource_id == 'com.spotify.music:id/bottom_navigation_item_icon') & (spoti.bb_content_desc == 'Buscar')].iloc[0].ff_bb_tap_exact_center
# spoti = df.get_ui_automator_df(2)
# spoti.loc[spoti.bb_resource_id == 'com.spotify.music:id/find_search_field'].ff_bb_tap_exact_center.iloc[0]()
# df.bb_input_natural.iloc[0]('AC/DC')
# allbois.reindex(allbois.bb_text.str.len().sort_values().index).iloc[0].ff_bb_tap_exact_center()
# df.bb_adbtools.iloc[-1].aa_disable_notifications()
# df.bb_adbtools.iloc[-1].aa_force_stop('com.microvirt.memuime')
# df = m.get_ui_automator_df(0, save_screenshot=True) # check out https://github.com/hansalemaos/adbkit

Metadata

Release files for pandasmemuc 0.15

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

Source distribution (sdist)

Source distribution for pandasmemuc 0.15
File Size Uploaded Provenance Actions
pandasmemuc-0.15.tar.gz 23.1 kB Without provenance Details for pandasmemuc-0.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pandasmemuc 0.15
File Interpreter ABI Platform Actions
pandasmemuc-0.15-py3-none-any.whl Python 3 none any Details for pandasmemuc-0.15-py3-none-any.whl

Total release size: 46.2 kB

Release files / pandasmemuc-0.15.tar.gz

Download URL pandasmemuc-0.15.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fe1479a76a88a82965e1e0fe9ad76dc1c5da9d914128f78243c16cc5f4c2c088
BLAKE2b-256 checksum
How to use checksums
6a66fa3a4286191fce81cbf56579f825a2cbf675695172816bb73674f02154d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / pandasmemuc-0.15-py3-none-any.whl

Download URL pandasmemuc-0.15-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07685ae286d72f17d39ff9735a724b78f74de18d6fce0a03958b7ab09972d2d6
BLAKE2b-256 checksum
How to use checksums
8c665b6e41e9cdef06adb45f196b5eabfc2182ddd1995c8bda89f12d8ba052e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for pandasmemuc 0.15

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.

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