Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usefuladbpluswithrestart-0.10.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

usefuladbpluswithrestart-0.10-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file usefuladbpluswithrestart-0.10.tar.gz.

File metadata

File hashes

Hashes for usefuladbpluswithrestart-0.10.tar.gz
Algorithm Hash digest
SHA256 7de1534eb60ecf8bac98378afe142d988dde503ab2321c358be5f046cb9a774e
MD5 dd1d0c1f9827abc64ce16917211bd43b
BLAKE2b-256 84e99f37abff22830c781272bdc06e682c1870a20610e44f73e3844ff08bde06

See more details on using hashes here.

File details

Details for the file usefuladbpluswithrestart-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for usefuladbpluswithrestart-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 0790a14b0a47672b238bbc210cf9ab99b81d2c83a8749b0431f1278ef937475f
MD5 21a0dc4cb6c673ede1a1c1dd1583e302
BLAKE2b-256 d4c7d264d14d7f37f83d6c627f8e8a832c456ed58f8483d73bf06dfb9db9c18a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page