Automating memu emulator with pandas
Project description
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
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pandasmemuc-0.10.tar.gz
(20.2 kB
view hashes)
Built Distribution
pandasmemuc-0.10-py3-none-any.whl
(20.3 kB
view hashes)
Close
Hashes for pandasmemuc-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fcc6e4e4d745a1ac25a6f23a12a11dda5f57d60837bb9363a45745e858c3cbd |
|
MD5 | dcd828525ce0b6409d32bcec9de1a8a4 |
|
BLAKE2b-256 | 7def241027ab8a912d7cb162757c4661f882f797ca72bdacad44b1c3097c856f |