Skip to main content

A wrapper for the Android adb tool. It's just adb on steroids

Project description

About adbons

A wrapper for the Android adb tool. It's just adb on steroids.

Features

Currently only some basic features are provided. These features should simplify and shorten the required adb commands.

Example workflow to kill an app when multiple devices are connected:

  • A default device and app id is set in the config. This information is saved in a .adbons.yml file. The file is either stored local (working dir) or global (~/.adbons/).
  • Execute the kill command. With saved values, the app is just killed with adbons kill instead of adb -s <device> shell am force-stop <app id>.

Install

Install the released package from PyPI:

pip3 install adbons

Install from source (developer mode):

git clone https://github.com/dbaelz/adbons.git
cd adbons
pip install -e .

Build a release artifact locally (creates dist/):

python -m pip install --upgrade build
python -m build

Upload to TestPyPI or PyPI using twine:

python -m pip install --upgrade twine
# test upload
python -m twine upload --repository testpypi dist/*
# publish
python -m twine upload dist/*

Note: this project includes a pyproject.toml so it is compatible with modern Python build tools.

Usage

Once installed, the adbons console script is available. Run adbons --help for all currently available commands. Individual commands provide help pages as well (e.g. adbons config --help).

Development - Getting started

  • (Optional) Create/activate a virtual environment.
  • Fork and clone the repository.
  • Switch to a feature branch.
  • Read the Click documentation for guidance on writing CLI commands.
  • Add your feature/bugfix and run tests.
  • Create a pull request.

Testing

Unit tests are executed with Python's unittest:

python -m unittest discover -v

You can also run the project locally by installing it in editable mode (pip install -e .) and exercising the adbons command.

License

adbons is licensed under the BSD License.

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

adbons-0.5.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adbons-0.5.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file adbons-0.5.0.tar.gz.

File metadata

  • Download URL: adbons-0.5.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for adbons-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7cae815fd456f26df54a06ec05d9bf35f531ad1bb587edd75915ef6013a12e0a
MD5 f9cbf23e6ea06d4720540d2d746e1cf4
BLAKE2b-256 1d31356266538f5bd55ba736f343bc44d0d7113b6c1aa8ffbd4823b214ecf568

See more details on using hashes here.

File details

Details for the file adbons-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: adbons-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for adbons-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f194383a31a78b6a6f313d392c4bebdd9095c0048073a50881643468153530aa
MD5 1c403bfa9a42518b192a53d0442ef003
BLAKE2b-256 38dd9d8f02da659a010b25fe2f56c3afc30a26a44eb2793ef43c53a16b3da9cc

See more details on using hashes here.

Supported by

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