usefuladbplus with restart
Project description
usefuladbplus with restart
A version of https://github.com/hansalemaos/usefuladbplus that automatically reconnects if it gets disconnected
pip install usefuladbpluswithrestart
from usefuladbpluswithrestart import (
AdbControlPlusWRestart,
activate_pandas_extensions,
)
from PrettyColorPrinter import add_printer
add_printer(1)
activate_pandas_extensions(
modules=(
"plus_find_shapes",
"plus_template_matching",
"plus_color_search_c",
"plus_color_cluster",
"plus_count_all_colors",
"plus_count_all_colors_coords",
"plus_fuzzy_merge",
"plus_tesser_act",
)
)
adb = AdbControlPlusWRestart(
adb_path=r"C:\ProgramData\chocolatey\lib\adb\tools\platform-tools\adb.exe",
device_serial="127.0.0.1:5845",
use_busybox=False,
connect_to_device=True,
print_stdout=False,
print_stderr=False,
convert_to_83=True,
su=False,
commandtimeout=30,
escape_filepath=True,
restart_when_error=True,
restart_tries=10,
sleep_after_reconnection_attempt=5,
)
df = adb.plus_activity_elements_dump(
with_screenshot=True,
screenshot=None,
with_sendevent=False,
)
print(df)
df1 = adb.plus_uidump(
timeout=60,
with_screenshot=True,
screenshot=None,
nice=False,
su=False,
with_sendevent=False,
)
print(df1)
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 usefuladbpluswithrestart-0.10.tar.gz.
File metadata
- Download URL: usefuladbpluswithrestart-0.10.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7de1534eb60ecf8bac98378afe142d988dde503ab2321c358be5f046cb9a774e
|
|
| MD5 |
dd1d0c1f9827abc64ce16917211bd43b
|
|
| BLAKE2b-256 |
84e99f37abff22830c781272bdc06e682c1870a20610e44f73e3844ff08bde06
|
File details
Details for the file usefuladbpluswithrestart-0.10-py3-none-any.whl.
File metadata
- Download URL: usefuladbpluswithrestart-0.10-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0790a14b0a47672b238bbc210cf9ab99b81d2c83a8749b0431f1278ef937475f
|
|
| MD5 |
21a0dc4cb6c673ede1a1c1dd1583e302
|
|
| BLAKE2b-256 |
d4c7d264d14d7f37f83d6c627f8e8a832c456ed58f8483d73bf06dfb9db9c18a
|