Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Module to control your android phone using code

Project description

PyPI - Python Version GitHub

android-controller

A python module to control your android phone

Installation

Prerequisites

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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for android-controller, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size android_controller-1.0-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size android_controller-1.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page