# usefuladbplus with restart
### A version of https://github.com/hansalemaos/usefuladbplus that automatically reconnects if it gets disconnected
### pip install usefuladbpluswithrestart
```py
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/usefuladbpluswithrestart",
"name": "usefuladbpluswithrestart",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "android, adb",
"author": "Johannes Fischer",
"author_email": "aulasparticularesdealemaosp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/84/e9/9f37abff22830c781272bdc06e682c1870a20610e44f73e3844ff08bde06/usefuladbpluswithrestart-0.10.tar.gz",
"platform": null,
"description": "\r\n# usefuladbplus with restart\r\n\r\n\r\n### A version of https://github.com/hansalemaos/usefuladbplus that automatically reconnects if it gets disconnected\r\n\r\n### pip install usefuladbpluswithrestart\r\n\r\n\r\n```py\r\nfrom usefuladbpluswithrestart import (\r\n AdbControlPlusWRestart,\r\n activate_pandas_extensions,\r\n)\r\nfrom PrettyColorPrinter import add_printer\r\n\r\nadd_printer(1)\r\nactivate_pandas_extensions(\r\n modules=(\r\n \"plus_find_shapes\",\r\n \"plus_template_matching\",\r\n \"plus_color_search_c\",\r\n \"plus_color_cluster\",\r\n \"plus_count_all_colors\",\r\n \"plus_count_all_colors_coords\",\r\n \"plus_fuzzy_merge\",\r\n \"plus_tesser_act\",\r\n )\r\n)\r\nadb = AdbControlPlusWRestart(\r\n adb_path=r\"C:\\ProgramData\\chocolatey\\lib\\adb\\tools\\platform-tools\\adb.exe\",\r\n device_serial=\"127.0.0.1:5845\",\r\n use_busybox=False,\r\n connect_to_device=True,\r\n print_stdout=False,\r\n print_stderr=False,\r\n convert_to_83=True,\r\n su=False,\r\n commandtimeout=30,\r\n escape_filepath=True,\r\n restart_when_error=True,\r\n restart_tries=10,\r\n sleep_after_reconnection_attempt=5,\r\n)\r\n\r\ndf = adb.plus_activity_elements_dump(\r\n with_screenshot=True,\r\n screenshot=None,\r\n with_sendevent=False,\r\n)\r\nprint(df)\r\n\r\ndf1 = adb.plus_uidump(\r\n timeout=60,\r\n with_screenshot=True,\r\n screenshot=None,\r\n nice=False,\r\n su=False,\r\n with_sendevent=False,\r\n)\r\nprint(df1)\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "usefuladbplus with restart",
"version": "0.10",
"project_urls": {
"Homepage": "https://github.com/hansalemaos/usefuladbpluswithrestart"
},
"split_keywords": [
"android",
" adb"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d4c7d264d14d7f37f83d6c627f8e8a832c456ed58f8483d73bf06dfb9db9c18a",
"md5": "21a0dc4cb6c673ede1a1c1dd1583e302",
"sha256": "0790a14b0a47672b238bbc210cf9ab99b81d2c83a8749b0431f1278ef937475f"
},
"downloads": -1,
"filename": "usefuladbpluswithrestart-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "21a0dc4cb6c673ede1a1c1dd1583e302",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5820,
"upload_time": "2024-03-27T04:07:47",
"upload_time_iso_8601": "2024-03-27T04:07:47.185324Z",
"url": "https://files.pythonhosted.org/packages/d4/c7/d264d14d7f37f83d6c627f8e8a832c456ed58f8483d73bf06dfb9db9c18a/usefuladbpluswithrestart-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "84e99f37abff22830c781272bdc06e682c1870a20610e44f73e3844ff08bde06",
"md5": "dd1d0c1f9827abc64ce16917211bd43b",
"sha256": "7de1534eb60ecf8bac98378afe142d988dde503ab2321c358be5f046cb9a774e"
},
"downloads": -1,
"filename": "usefuladbpluswithrestart-0.10.tar.gz",
"has_sig": false,
"md5_digest": "dd1d0c1f9827abc64ce16917211bd43b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4115,
"upload_time": "2024-03-27T04:07:49",
"upload_time_iso_8601": "2024-03-27T04:07:49.047950Z",
"url": "https://files.pythonhosted.org/packages/84/e9/9f37abff22830c781272bdc06e682c1870a20610e44f73e3844ff08bde06/usefuladbpluswithrestart-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-27 04:07:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hansalemaos",
"github_project": "usefuladbpluswithrestart",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "usefuladbplus",
"specs": []
},
{
"name": "usefuladbwithrestart",
"specs": []
}
],
"lcname": "usefuladbpluswithrestart"
}