android-controller
A python module to control your android phone
Installation
Prerequisites
- Pip
- adb installed and added to PATH
Using PyPi (recommended)
Open a command prompt and run:
pip install android_controller
From source
Open a command promp and clone this repo. Now cd to that folder and run:
pip install .
Usage
The package can be imported using:
import android_controller
Most of the times devices connect to adb automatically, but if they don't you can use:
android_controller.connect(host) #host is where your device is connected to. For example, bluestacks would be localhost:5555
You can then check which devices are connected using:
connections = android_controller.checkConnections()
This will return a list with the names of all connected devices. Please make sure you only have one device connected, otherwise the module might not work properly.
Distributing
All distributions are welcome. There are quite some functions that are less commonly used I left out, but they can of course still be added.
License
This project is licensed under the MIT license.
Release files for android-controller 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| android_controller-1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| android_controller-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / android_controller-1.0.tar.gz
| Download URL | android_controller-1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4df78a3a56800395c1db392f37a7ea3ed773ab84517ebd0c86079e236177d266
|
|
BLAKE2b-256 checksum How to use checksums |
7c5cc0fa039f91677332fb3e4b70ba8032be06aa995b419814a12e751e84d7bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|
Release files / android_controller-1.0-py3-none-any.whl
| Download URL | android_controller-1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ffda050cc6e8add576760b5cff59f90a080001baef1c4cea332360fd03b8971
|
|
BLAKE2b-256 checksum How to use checksums |
9f1ae49851ce4004353e55f3de18b8f8228b3f30c4b62b75f6905349317f0062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|