Skip to main content

asyncio version of usefuladb

Documentation: https://github.com/hansalemaos/usefuladb

pip install usefuladbasyncio

# Tested against Android 11 / Bluestacks / Python 3.11 / Windows 10

from usefuladbasyncio import AdbAsyncIO
import time

adb = AdbAsyncIO(
    adb_path=r"C:\ProgramData\chocolatey\lib\adb\tools\platform-tools\adb.exe",
    device_serial="127.0.0.1:5555",
    use_busybox=False,
    connect_to_device=True,
    invisible=True,
    print_stdout=True,
    print_stderr=True,
    limit_stdout=None,
    limit_stderr=None,
    limit_stdin=None,
    convert_to_83=True,
    wait_to_complete=15,
    flush_stdout_before=True,
    flush_stdin_before=True,
    flush_stderr_before=True,
    su=False,
    exitcommand="xxxCOMMANDxxxDONExxx",
    commandtimeout=10,
    escape_filepath=True,
    capture_stdout_stderr_first=True,
    global_cmd=False,
    global_cmd_timeout=15,
    use_eval=False,
    eval_timeout=30,
    stdoutsleep=0.5,
    stderrsleep=0.5,
    asynciosleep=0,
    daemon=True,
    reconnect_interval=2,
)
while True:
    # can reconnect if the connection gets lost
    a, b = adb.execute_sh_command(
        "ls /sdcard/ -R",
        stdoutsleep=1,
        stderrsleep=1,
        asynciosleep=0,
        disable_print_stdout=True,
        disable_print_stderr=True,
    )
    c, d = adb.sh_ls_folder("/sdcard/") # i haven't tested all methods of usefuladb yet
    print(c, d)
    print([a, b])
    time.sleep(1)

Metadata

Release files for usefuladbasyncio 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for usefuladbasyncio 0.10
File Size Uploaded Provenance Actions
usefuladbasyncio-0.10.tar.gz 7.2 kB Without provenance Details for usefuladbasyncio-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for usefuladbasyncio 0.10
File Interpreter ABI Platform Actions
usefuladbasyncio-0.10-py3-none-any.whl Python 3 none any Details for usefuladbasyncio-0.10-py3-none-any.whl

Total release size: 15.2 kB

Release files / usefuladbasyncio-0.10.tar.gz

Download URL usefuladbasyncio-0.10.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9395881bc45dc05938dfd961b913eb730cebbd8d4dcf164ba8737b1ede240dc6
BLAKE2b-256 checksum
How to use checksums
575a78ea6d02b4a8dd6f42cbb00ef3987cc71f72615961c2ea80651b864bed57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / usefuladbasyncio-0.10-py3-none-any.whl

Download URL usefuladbasyncio-0.10-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7878bb8074db301bf2eb78b692c2cf3754c088a79cecee983c937430026c45a
BLAKE2b-256 checksum
How to use checksums
a1b2aa537a87f943b98b5634bd4aa8326921d01ffe4f3b6828fc0ace89f7ac36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for usefuladbasyncio 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page