# adb-tool-py
adb-tool-py is a library for using Android Debug Bridge (ADB) functionality from Python. It also provides extended functionality.
## Features
- Communication with Android devices
- Parsing the displayed ViewTree
- Search/touch strings
- ID search/touch
- Search/touch by other criteria
## Installation
```bash
pip install adb-tool-py
```
## Documentation
For more detailed usage and additional features, please refer to the [official documentation](https://shotaiuchi.github.io/adb-tool-py).
## Usage
```python
import adb_tool_py as adb_tool
import time
adb1 = adb_tool.AdbTool()
adb2 = adb_tool.AdbTool(serial="emulator-5554")
ret1 = adb1.query("shell ls -al")
ret2 = adb2.query("shell ls -al")
print(ret1.returncode)
print(ret1.stdout)
print(ret1.stderr)
ret2 = adb1.logcat()
time.sleep(1)
with ret2.open() as file:
print(file.read())
ret2.close()
```
## License
This project is licensed under the [MIT License](LICENSE).
## Contact
If you encounter any issues, please report them through the [GitHub issue tracker](https://github.com/shotaiuchi/adb-tool-py/issues).
Raw data
{
"_id": null,
"home_page": "https://github.com/ShotaIuchi/adb-tool-py",
"name": "adb-tool-py",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Shota Iuchi",
"author_email": "shotaiuchi.develop@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c7/0f/4f6fd02a18b8532d2c2ca7233a7351d4d18543bbbf245da48711481354ec/adb-tool-py-0.1.2.tar.gz",
"platform": null,
"description": "# adb-tool-py\n\nadb-tool-py is a library for using Android Debug Bridge (ADB) functionality from Python. It also provides extended functionality.\n\n## Features\n\n- Communication with Android devices\n- Parsing the displayed ViewTree\n - Search/touch strings\n - ID search/touch\n - Search/touch by other criteria\n\n## Installation\n\n```bash\npip install adb-tool-py\n```\n\n## Documentation\n\nFor more detailed usage and additional features, please refer to the [official documentation](https://shotaiuchi.github.io/adb-tool-py).\n\n## Usage\n\n```python\nimport adb_tool_py as adb_tool\nimport time\n\nadb1 = adb_tool.AdbTool()\nadb2 = adb_tool.AdbTool(serial=\"emulator-5554\")\n\nret1 = adb1.query(\"shell ls -al\")\nret2 = adb2.query(\"shell ls -al\")\n\nprint(ret1.returncode)\nprint(ret1.stdout)\nprint(ret1.stderr)\n\nret2 = adb1.logcat()\ntime.sleep(1)\nwith ret2.open() as file:\n print(file.read())\nret2.close()\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Contact\n\nIf you encounter any issues, please report them through the [GitHub issue tracker](https://github.com/shotaiuchi/adb-tool-py/issues).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "adb-tool-py is a tool for Android Debug Bridge (adb).",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/ShotaIuchi/adb-tool-py"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ee0dbbb086e566316752d982da640001d2e605eb5c284778d4a35f3911a5f77d",
"md5": "5a0fee855d7eb5ab17db908e6caf6fce",
"sha256": "817669ed4037e2c22b8b6047ab9b18cdc525201c3a98773b55c3cb347ac44dc8"
},
"downloads": -1,
"filename": "adb_tool_py-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5a0fee855d7eb5ab17db908e6caf6fce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 12637,
"upload_time": "2024-05-25T13:26:21",
"upload_time_iso_8601": "2024-05-25T13:26:21.204398Z",
"url": "https://files.pythonhosted.org/packages/ee/0d/bbb086e566316752d982da640001d2e605eb5c284778d4a35f3911a5f77d/adb_tool_py-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c70f4f6fd02a18b8532d2c2ca7233a7351d4d18543bbbf245da48711481354ec",
"md5": "23a67dae3c7335624c380b2ca8ea4d78",
"sha256": "9c743c848203b11a20291d7e84e4d98e319c20a135172d73b0acbaa7aa193978"
},
"downloads": -1,
"filename": "adb-tool-py-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "23a67dae3c7335624c380b2ca8ea4d78",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 10081,
"upload_time": "2024-05-25T13:26:22",
"upload_time_iso_8601": "2024-05-25T13:26:22.969035Z",
"url": "https://files.pythonhosted.org/packages/c7/0f/4f6fd02a18b8532d2c2ca7233a7351d4d18543bbbf245da48711481354ec/adb-tool-py-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-25 13:26:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ShotaIuchi",
"github_project": "adb-tool-py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "adb-tool-py"
}